I've just also figured it out no need to calculate anything. When invoking the stairs command prior to drawing the run of the stairs go to stairs properties and check the actual depth value (which is automatically computed and in grey) and put the same value in the top offset that will do the trick.
However, this cannot be used in a U-type stairs it will result to an error and some unwanted result. As a work around for U-type stairs i just created the a floor slab for the intermediate landing then create two straight stairs going up and down respectively using the same process above.