simple math, just use MS excel, i have a bunch of "programs" or spreadsheets with math formulas for tracking aircraft hours and such, i also have one that will do al the math for a flight plan, all i do is enter the airpseed and distanve an the time and fuel are calculated and added to the rest of the legs.
Grant