Have a look at http://www.cpearson.com/excel/OnTime.aspx

It should have all the information you need & doing it yourself is the best way to learn

Cheers