example of usage. Not sure yet regarding time calculation