Added logic for calculating dynamic range usage