Date calculation from another entities power usage

Not sure where to start here. I have my washing machine on a Sonoff with power monitoring. I can see exactly when the washing machine was used by looking at power usage.

image

I would like another entity which is storing “when” the washing was last used. I am assuming I will need another sensor, probably using time_date.

Any ideas where to start?