DC_BUS_OVER_REGEN_CURRENT Documentation

I was reading the documentation for this error and I was wondering what values are used in the formula: (V_power_supply / Brake_resistance) > (total motor.config.current_lim + total motor.config.current_lim_margin).

I understand what values to use for the current_lim and current_lim_margin based off a previous post. But what values should be used for V_power_supply and Brake_resistance? If I have a 24V power supply and a 50W resistor, do I use those values?

Thanks