Billing code (Arduino)

Hello,

I want your help to write a billing power consumption code in Arduino (C++) based on this schedule below: