fix some math in the daily report template helper
fix daily reports