START
Input TimeEnd,TimeStart
If (TimeStart>=1&&TimeEnd<=7)
totalPayment=(TimeEnd-TimeStart)*1.20
Else{basicPay=(7-TimeStart)*1.20
overTime=(TimeEnd-7)*1.75
totalPayment=BasicPay+overTime
}
Output totalPayment
END