This post may also be of interest
(Though I think you would have to calculate the difference between start and end time )