Of two variables, one DEPENDS ON the other.
Example:
Temperature DEPENDS ON season of the year.
So "temperature" is the dependent variable.
(You would never say "What season it is depends on the temperature. When it gets warm, the calendar flips to June, and if it cools off it suddenly becomes October...")
Does a tomato plant's height depend on its age?
Yes, because its age is what is making it grow.
Or would you say that what age a tomato plant is depends on its height?
No, because its height is not making time pass.
Its height depends on its age, so "height" is the dependent variable.
Your grades DEPEND ON how many hours you study, not the other way around.
Hours of study make your grades go up, but your grades are not making the hours occur.
So "grades" is the dependent variable.
You go to school DEPENDING on the day of the week.
The day of the week is what makes you go or stay home.
You would never say, "What day this is depends on if I decide to go to school or not."
Deciding to stay home does not make it become Saturday (but being Saturday makes you stay home.)
So "going to school" is the dependent variable.
~~~~~~~~~~~~~~~~~~~~~~~
Here is a useful hint:
In almost every case, measures of "time" are INDEPENDENT.
That's because time marches on without depending on what you do -- or anything else.
Time is independent of your decisions about school, or the shifts in the weather, or anything else.
So always pick "time passing" as the independent variable, and the other one as the dependent variable.