How can I make a code with calculations?

Using TinyDB OR by calling new screen with parameter.

Storing Value and open another screen with start value