Making a Baby
Statement
My girlfriend plans to have a baby. She likes planning so much, that she wants to know every time when we try to make a baby when the baby would be born ( if we believe that it takes exactly 8 months and 27 days after the impregnation). I programmed this calculator for her, because I'm a good future father and I love her so much.
You need to add the days first. Then the months.
Input description
Date [[d]] in EN/US style ( MM/dd/yyyy )
Output description
Date [[d]] + 8 Months and 27 days in EN/US style ( MM/dd/yyyy )
Constraints
Date [[d]] in EN/US style ( MM/dd/yyyy )
Game modes
Test cases
Test 1 Test
Input
12/31/2016
Output
09/27/2017
Validator 1 Validator
Input
05/12/2013
Output
02/08/2014
Test 2 Test
Input
09/15/2014
Output
06/12/2015
Validator 2 Validator
Input
11/16/2015
Output
08/13/2016
Test 3 Test
Input
12/31/3012
Output
09/27/3013
Validator 3 Validator
Input
02/27/2018
Output
11/26/2018
Test 4 Test
Input
05/21/1011
Output
02/17/1012
Validator 4 Validator
Input
07/01/1998
Output
03/28/1999
Solution language
Solution
Stub generator input