Salary calculation for overtime

I have created a custom field for over time which calculates overtime for a day. This field is present in attendance . Now i want to calculate salary for those overtime hours combined for a month. How can i do that