Hi,
Please find attached a solution that calculates the depth of stairs based on a the length of the spline minus the depth of the platform. This distance is then divided by a number of steps and the result used to scale their depth.
I hope that helps, please let me know if you have any questions.
Many thanks,
Paul.