added equation for total for monthly