Fixed up total estimate function in detail panel