stairs

I am trying to create a stair model that automatically, through a design table, will generate the number of steps at the correct rise and run based on the overall rise and run of the whole set of stairs.  I have hit a road block because when it is not doing the spacing correctly.

SolidworksParts And Features