add percentage to totals API resource