Having issues with calculation when show/hide fields are involved