fix bug in mission dates calculations