calculate pt time