Added dummy value for switch endtime to avoid bug with time on calculation