fix computation of bill