A simple manual (button) flow. For a given date (mm/dd/yyyy), the flow will calculate the number of days that specific month (mm) has. It also gives you the end of the month. This fills a gap in the Flow expressions as there is a Start of the month expression but no End of the month expression.
Note: Yes, Flow takes care of leap year calculation when calculating the days (for Feb).