I'm trying to calculate current consumption regarding energy used by a embedded system.

Lets give us the following

The current consumption of an embedded system in work mode

**x**is 10mA.

The current consumption of an embedded system in work mode

**y**is 50mA.

and lets say that the system is 8 hours in work mode

**x**and 12hours in work mode

**y**, and I want to present the total energy used.

Is it wrong to calculate it as follows:

10mA*8h + 50mA*12h= 80mAh+600mAh = 680mAh

thanks!