When you look at the PCR <3 there is a counter time type as well since PBEG opertaion considers the each line in PTIP table i.e employee is punched in 08:00 punched out 08:45 again punched in 09:00 then PCR considers 08:00 as PBEG and 09:00 as well so how it works is 08:00-08:00 add to time type again 09:00-08:00 = 1:00 add to time type it cumulates the values into time type to avoid this we have to use a counter time type once PBEG is processed it should not process again check the <3 you will get an idea and similarly for Clock Out time as well and for Clock out you have to identify the last pair then you can get the output as you desired.
Regards
Venkatesh