Added quota calculation method