assuming the capacitor is discharged when the switch is closed,
Vcap = Vbat(1 - e^(-t/RC))
Qcap = CVcap
RC is the time constant, in seconds (hence the s) which is usually denoted by Greek lower case tau
both Vcap and Qcap follow the red charge curve
with different values
If the capacitor is charged to Vcap, open the switch, remove the battery and then close the switch,
the capacitor discharges according to
Vcap = Vbat(e^(-t/RC))
and as above:
Qcap = CVcap
RC is the time constant, in seconds (hence the s) which is usually denoted by Greek lower case tau
general rule of thumb:
if time is 5 time constants (5*R*C) or more, the capacitor is essentially fully charged or fully discharged
note in the example, 153 time constants yields 10^-69, a very small number
so the capacitor is either fully charged or fully discharged, as the situation demands
build a table in your favorite spreadsheet:
x e^-x 1-e^-x where x is 0 to 5, step by 1
then plot the two curves
e^-x is the general discharge curve and 1-e^-x is the general charge curve.
lots of people make lots of silly mistakes, so the double precision printing of numbers is not the biggest issue