RC Times

How long does it take a capacitor of 100 nF to charge up to 3 Volts when it is connected to a 12V supply voltage through a 47 kฮฉ resistor? Or what capacitor value do I need if I want to charge it to 6 V in 33 ms when connected to a 9 V supply through a 15 kฮฉ resistor?
And I can think of quite some other questions like these for any given RC circuit. This program will help you answer these questions, no matter which one of the 5 parameters is unknown.

Formulas

RC times

Ub = Uc / ( 1 - e๐Ÿ • ( -t / (R โ€ข C) ) )

Uc = Ub . ( 1 - e๐Ÿ • ( -t / (R โ€ข C) ) )

R = t / ( C โ€ข -LN( ( Ub - Uc ) / Ub ) )

C = t / ( R โ€ข -LN( ( Ub - Uc ) / Ub ) )

t = R โ€ข C โ€ข -LN ( ( Ub - Uc ) / Ub )

Where:
Ub is the net driving voltage. If the capacitor is at 0V this will simply be the supply voltage. If not, subtract the starting voltage across the capacitor from the supply voltage to get Ub.
Uc is the voltage across the capacitor after t seconds.
R is value of the series resistor of the capacitor.
C is the value of the capacitor itself.
t is the time it takes the given capacitor to charge up to the voltage Uc.

The Program

000โ€“
h LBL A001โ€“25 13 11
STO 1002โ€“23 1Store Ub
R/S003โ€“74
STO 2004โ€“23 2Store Uc
R/S005โ€“74
STO 3006โ€“23 3Store R
R/S007โ€“74
STO 4008โ€“23 4Store C
R/S009โ€“74
STO 5010โ€“23 5Store t
g X=0011โ€“15 71
GTO 5012โ€“22 5T is the unknown
RCL 4013โ€“24 4
g X=0014โ€“15 71
GTO 4015โ€“22 4C is the unknwon
RCL 3016โ€“24 3
g X=0017โ€“15 71
GTO 3018โ€“22 3R is the unknwon
RCL 2019โ€“24 2
g X=0020โ€“15 71
GTO 2021โ€“22 2Uc is the unkown
RCL 1022โ€“24 1
g X=0023โ€“15 71
GTO 1024โ€“22 1Ub is the unknown
CLX025โ€“34All values are known,
h RTN026โ€“25 12there's nothing to calculate!
 
h LBL 1027โ€“25 13 1Calculate Ub
RCL 5028โ€“24 5
RCL 3029โ€“24 3
รท030โ€“71
RCL 4031โ€“24 4
รท032โ€“71
CHS033โ€“32
g EX034โ€“15 1
1035โ€“1
Xโ‡‹Y036โ€“21
โ€“037โ€“41
RCL 2038โ€“24 2
Xโ‡‹Y039โ€“21
รท040โ€“71
h RTN041โ€“25 12
 
h LBL 2042โ€“25 13 2
RCL 5043โ€“24 5
RCL 3044โ€“24 3
รท045โ€“71
RCL 4046โ€“24 4
รท047โ€“71
CHS048โ€“32
g EX049โ€“15 1
1050โ€“1
Xโ‡‹Y051โ€“21
โ€“052โ€“41
RCL 1053โ€“24 1
ร—054โ€“61
h RTN055โ€“25 12
 
h LBL 3056โ€“25 13 3
RCL 4057โ€“24 4
GTO 0058โ€“22 0
 
h LBL 4059โ€“25 13 4
RCL 3060โ€“24 3
h LBL 0061โ€“25 13 0
RCL 1062โ€“24 1
RCL 2063โ€“24 2
โ€“064โ€“41
RCL 1065โ€“24 1
รท066โ€“71
f LN067โ€“14 1
CHS068โ€“32
ร—069โ€“61
RCL 5070โ€“24 5
Xโ‡‹Y071โ€“21
รท072โ€“71
h RTN073โ€“25 12
 
h LBL 5074โ€“25 13 5
RCL 1075โ€“24 1
RCL 2076โ€“24 2
โ€“077โ€“41
RCL 1078โ€“24 1
รท079โ€“71
f LN080โ€“14 1
CHS081โ€“32
RCL 3082โ€“24 3
ร—083โ€“61
RCL 4084โ€“24 4
ร—085โ€“61
h RTN086โ€“25 12

Operation

For this program we need 4 known parameters and we want the calculator to come up with the 5th parameter, no matter which one it is. That doesn't fit on the stack any more, so we're going to use the memory locations 1 to 5 to store all the parameters.
After entering the first parameter you start the program by pressing the A key. This stores the first parameter in memory location 1. All subsequent parameters are simply entered when you press the R/S key, storing each value in the subsequent memory locations up to 5.
You should make the unknown parameter 0, which indicates that you want to know that value. Feel free to fool the calculator by entering multiple parameters with the value of 0, but don't blame the calculator when it comes up with a rubbish answer or even an error. In case you have not entered a parameter with the value 0 at all, the calculator returns the value 0.

The parameters are to be entered in the order: Ub, Uc, R, C and t.

Examples

As our first example we'll try to find out how long it takes to charge a capacitor of 10 nF from 2V to 4V. The capacitor is placed in series with a 10 kฮฉ resistor with a total supply voltage of 9V.
This means that Ub is 9V minus the starting voltage of 2V, the rest can be entered as is.

7A 4R/S 10EEX3R/S 10EEX9CHS 0R/S and the answer will be 84.73 ยตs.

In an other example I want to know to what voltage a capacitor of 220 nF is charged when it is connected in series with a resistor of 47 kฮฉ across a voltage of 12V. What will be the voltage after 10 ms?

12A 0R/S 47EEX3R/S 220EEX9CHS 10EEX3CHSR/S and the answer will be 7.438V.