In that formula you are saying the height is -1. Does that work? Height must be positive.