Try this - I haven't fully tested it.

=IF(AND(OR(WEEKDAY(A2)={4,6}),HOUR(A2)<16),INT(A2),INT(A2)-CHOOSE(WEEKDAY(A2),1,2,3,4,1,2,3))+16/24