title: IF formula in Excel to calculate demurrage charges (Logistics)
body: <p>I hope someone can help with with a question on IF formula in Excel. I am trying to calculate demmurage charges for logistic purposes, but I cannot get the formula to come out right. I will set the table below.</p>
  
  <p>Driver has a 08:00 appointment and arrives on time. He has two free hours of load time prior to charging "wait" time. Driver is completed at 10:30, accumulating demurrage. I want the formula to tell me if the driver accrued detention charges.</p>
  
  <p>IF(departure time) is greater than (appointment time)+2 hours "detention"</p>