It dependent on the soil water depletion (cumulative depth of evaporation) from the topsoil layer (Kr = 1 when De,i-1 is equal or lesser than REW)
cal_Kr_for_DualKc(TEW, REW, De)
A value for evaporation reduction coefficient
maximum cumulative depth of evaporation (depletion) from the soil surface layer when Kr = 0 (TEW = total evaporable water)
cumulative depth of evaporation (depletion) at the end of stage 1 (REW = readily evaporable water), mm
cumulative depth of evaporation (depletion) from the soil surface layer at the end of day i-1 (the previous day),mm
Allen, R. G., Pereira, L. S., Raes, D., & Smith, M. FAO Irrigation and drainage paper No. 56. Rome: Food and Agriculture Organization of the United Nations, 1998.