Unless I have misunderstood, are your initial values fixed? 2021 and 957?
If yes then
Parentid = parentid+datediff(2021-varyear)
If a counter starts counting down from 2021 by one year, this may work like so:
first year datediff is zero in 2021
Parentid = 957
When varyear is 2020
Parentid = 957+(2021-2020)
When year is 2019
Parentid = 957+(2021-2019)
When year is 2018
Parentid = 957+(2021-2018)