def before_nearest_workday(dt):
 return previous_workday(nearest_workday(dt))

def before_nearest_workday ( dt ) : return previous_workday ( nearest_workday ( dt ) )
returns previous workday after nearest workday .