Why not use this?

=IF(B7="";"";B7+$E$2>TIME(23;59;59))