added function for calculating time remaining to/ passed from start