update function
getDaysBeforeMissionEnds