debug bonus calculation