Fixed issue with duty rate calculation