Mulitple IF Statements based on other critera


I have this and it works on its own.

=IF(ISBLANK((Basic Finish)),"Past Due",IF((FCM 4 Expected Date)>(Basic Finish),"On Time",TEXT((FCM 4 Expected Date)-(Basic Finish),"h:m:ss")))

=IF(ISBLANK((Basic Finish)),"Past Due",IF((Expected End Date)>(Basic Finish),"On Time",TEXT((Expected End Date)-(Basic Finish),"h:mm:ss")))

I have trying to combine these into a single statement without success. I came up with this, but it just doesn’t work. What I am missing

=IF((Work Order Type)<>"FCM4",IF(ISBLANK((Basic Finish)),"Past Due",IF((Expected End Date)>(Basic Finish),"On Time",TEXT((Expected End Date)-(Basic Finish),"h:m:ss"),IF((Work Order Type)="FCM4",IF(ISBLANK((Basic Finish)),"Past Due",IF((FCM 4 Expected Date)>(Basic Finish),"On Time",TEXT((FCM 4 Expected Date)-(Basic Finish),"h:mm:ss"))))))))