Hi,
you need to divide your salary as below.
Salary/total days = per day salary.
per day salary/working hours= per hour amount.
per hour amount*total hours of OT= Total Amount.
but in some company they are giving double rate. it means whatever you are getting hourly u need to multiply by 2.