gradient factor formula