Since the percent lost per hour is constant, this is a linear equation, and the slope-intercept form of a linear equation is:

Where m is the slope and b is the intercept.
In this case, we want to formulate how much percentage is left based on how many hours have passed, so the percent left is dependent upon the time passed. This means that the dependent quantity is the percent of battery life left, and this will be variable y.