MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

### Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

# Solution 178726

Submitted on 18 Dec 2012 by José Ramón Menzinger

Correct

35Size
Leading solution size is 31.
`This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.`

### Test Suite

Test
Code Input and Output
1
Pass

```%%
[nDays,dateStr] = compute_next_birthday_milestone('12-Feb-1809');
assert(isequal(nDays,75000) && isequal(dateStr,'17-Jun-2014'))
```
```varargout =
[75000]    '17-Jun-2014'
```
2
Pass

```%%
[nDays,dateStr] = compute_next_birthday_milestone('14-Mar-1879');
assert(isequal(nDays,49000) && isequal(dateStr,'10-May-2013'))
```
```varargout =
[49000]    '10-May-2013'
```
3
Pass

```%%
[nDays,dateStr] = compute_next_birthday_milestone('17-Aug-1939');
assert(isequal(nDays,27000) && isequal(dateStr,'19-Jul-2013'))
```
```varargout =
[27000]    '19-Jul-2013'
```