Custom Script in timesheet to get value of overtime

custom script to populate custom field overtime if total hours is greater than 45