Assuming your times are input correctly (i.e. hh:mm)
Just subtract leaving time from starting time to get daily total
To sum the week's hours, a simple SUM will do, however (and this is important) your cell format for the SUM should be [h]:mm - otherwise the SUM will not work correctly