If you are struggling to get the program running, follow these steps:

// 5. Update Remaining Capacity Remaining_Capacity_mAh -= charge_consumed_mAh;