Working out mAh from current and time
That should be easy - each hour lasts 3.6 million milliseconds so each milliampere-hour contains 3.6 million milliampere-milliseconds. You have to multiply the current by the number of milliseconds which will give you milliampere-milliseconds and then divide that by 3.6 million to get milliampere-hours.