Question: 1. Make a new UWP project (on windows) and make a new page. Run the project, a blank form appears with a control box, I can press minimise and the page is minimised. Great!
2. I want to minimise the page from code. I put a button on the page. in the button handler I have: 

```
Private Sub button_Click(sender As Object, e As RoutedEventArgs) Handles button.Click
    Visibility = Visibility.Collapsed
End Sub

```

But when I press is, the button disappears and the page just stays in view. How do I minimise the page?

Answer: 
Why on earth are you reimplementing the wheel and not just using datetime? 

```
>>> import datetime
>>> start = datetime.date(2016,1,1)
>>> end = datetime.date(2016,2,28)
>>> end-start
datetime.timedelta(58)
>>> delta = end-start
>>> delta.days
58

```
Your `DaysforMonths` will calculate current month as it already over.

For example: `DaysForMonth(01, 2016)` will return 31, but should return 0. Jenuary is not over yet.

You should not count current month.

Also (if possible) please follow [pep8](https://www.python.org/dev/peps/pep-0008/) when using python.