How to reset energy usage on 18th

The total energy usage is reset at end of the month. But the reading is taken on 18th of every month. How do I reset in home assistant in the middle of the month to get the correct calculation.

I am using a clamp sensor connected to d1 mini. This is giving me approx calculation for the day.