got delta t calculation working