harrybosch
Programmer
Hello everybody,
I've created a report that calculates the average flying time of an airplane for a particular destination in a given period of time. These averages are calculated in minutes and are formatted to fit in the HH:MM format by the following formula:
(="Average Flight Time: "+FormatNumber(Truncate((Average(<Actual Flight Time (min.)>)/60),0), "00" + ":" + FormatNumber(Mod(Average(<Actual Flight Time (min.)>),60),"00"
However in some occasions, for example:
Total amount of minutes: 7908
total amount of flights: 44
The report turns up with average time 2:60, while it should be 3:00. Is there any way this can be prevented?
Thanks,
brgds,
Harry
I've created a report that calculates the average flying time of an airplane for a particular destination in a given period of time. These averages are calculated in minutes and are formatted to fit in the HH:MM format by the following formula:
(="Average Flight Time: "+FormatNumber(Truncate((Average(<Actual Flight Time (min.)>)/60),0), "00" + ":" + FormatNumber(Mod(Average(<Actual Flight Time (min.)>),60),"00"
However in some occasions, for example:
Total amount of minutes: 7908
total amount of flights: 44
The report turns up with average time 2:60, while it should be 3:00. Is there any way this can be prevented?
Thanks,
brgds,
Harry