"The amount of time it takes to finish my homework is a variable; sometimes it takes me an hour, other times it takes much longer.
"
Die Zeit, die ich brauche, um meine Hausaufgaben zu erledigen, ist eine Variable; manchmal brauche ich eine Stunde, manchmal viel länger.