I think I found the answer and it seems to work:

=MOD(C2-B2,1)*24