fix the way to calc the revenue