proper time calculation