in lib/experimentUtils.ts [62:77]
export function getProposedEndDate(
startDate: string | null,
proposedDuration: number | undefined,
): string | null {
if (startDate === null || proposedDuration === undefined) {
return null;
}
// XXX need to verify that experimenter actually uses UTC here
const jsDate = new Date(startDate);
jsDate.setUTCDate(jsDate.getUTCDate() + proposedDuration);
const formattedDate = jsDate.toISOString().slice(0, 10);
return formattedDate;
}