If on column B format as date
try this
=IF(MONTH(B1)>=7,IF(C1="Alan",60,IF(C1="smith",55,40)),"")