Fixed resource calculation.