Solved by ptrblck in post #2 
              
              
                The formula to calculate the output shape is given in the docs. 
Your posted formula is missing the dilation and the subtraction of the constant 1s. 
Also, note that the floor operation is used as indicated by the brackets.