code: def runtime_from_date(start_date, years, months, days, seconds, caltype):
      
  
      end_date = start_date + relativedelta(years=years, months=months,
                                            days=days)
      runtime = end_date - start_date
  
      if caltype == NOLEAP:
          runtime -= get_leapdays(start_date, end_date)
  
      return int(runtime.total_seconds() + seconds)
docs: Get the number of seconds from start date to start date + date_delta.
  
      Ignores Feb 29 for caltype == NOLEAP.