How to add this column in the timesheet?

I really got trouble in where to put the formula…
Anybody can help me with this?
i want to display the total over time hours from the listview column overtime hrs…


Write a code on validate using for loop where it would calculate values of all rows and then set the value in your doc Total Overtime hours.

can you elaborate more what should i do first and next… where should i go ?