Sorry. IoTaWatt can provide the data but doesn’t have the resources to perform that analysis.
That’s probably something best done in an external database like influx or Emoncms.
I wouldn’t recommend trying to do it in Home Assistsnt. The Energy module is an OK dashboard, but as an analytic tool it’s really more of a toy as it only reads in 30 second increments, and only while connected and running. H there is no capability to retrieve or store any missed data. Influx and Emoncms by contrast can save 5 second data and will update missing data after any communication or server outage.