derating calculation