implemented calculating when delivery arrives