response[prefix + "_MaxTime"] = epoch[variable][0:window_end].idxmax()