You are right, but for this application you don't switch the variables. Only switch back for general finding inverse function. Q(t) is the charge at time t. It remains Q(t) for the inverse function.
where Q(t) is the amount of charge at time t, and is the original charge. The inverse function shows the time, t, needed to reach a certain % of original charge.