Total hours in A1.

In A2 to calculate time & half
=IF((A2-8)>2,2,A2-8)

In A3 to calculate double time

=IF(A2-10>0,A2-10,"")