Taking your description literally...

=IF(F8="","",IF(AND(C$3<K8,B$3<K8),K8-C$3,IF(K8="",B$3-C$3,"")))