Fix resource calculation