Fix to MetricsSummary SP

handles a "divide by 0" issue that was breaking things before
Add some pseudo-code to ProductionSummary SP

code to be used for properly calculating the unitsOfTimeAvailable when
there is a date range