I am having one 22kw motor which is used for hoisting purpose i am running motor through VFD

In this i want to connect break resistor

Can any one can help me how to calculate the break resistor value for my 22kw motor

What is the formula for calculating value

My hoist on time is - 25s to reach down off time is per cycle 4 min