As we can see we have the next equation
where h is the dependent variable and d is the independent variable
So we agree, because d does not depend on the height, but the height depends on the days
In order words
An independent variable is a variable that represents a quantity that is modified in an experiment. In this case d
A dependent variable represents a quantity whose value depends on how the independent variable is modified. In this case h