Any reason the existing one doesn't work for you or is it just an exercise? You can click on the cells of the JoshH timing calculator and see the formulas.
If you are having trouble with a specific formula then maybe post it up and your file and we can probably help figure it out