This is an extension to an earlier question I raised here How to calculate difference between dates excluding weekends in Pyspark 2.2.0. My spark dataframe looks like below