Yes, you may calculate OT in an Excel sheet. First, you have to generate an Excel sheet with all employees' names, their salaries, OT hours, and the calculation of OT as per the formula provided by Sumit. This sheet can be used every month for calculating OT; you only need to change the OT hours for employees leaving and joining.
Regards