Calculate hours

Calculate hours

Looking for the following function. Example,
Employee worked from 3p to 7a whats the total hours between 11p to 4a