#### Skydiver

**Staff member**

Slow down. How how you create this formula with pen and paper? Do you recall your high school algebra (or grade school algebra for some Gen X and later)? How would you write the algebraic equation for this problem? Algebraic equations usually translate into C# assignment statements very easily.I need to create a C# formula that adds a $2.00 base fee plus any add ons (listed below). one with a tax of 7% (dine in) and one without (carry out)

Here's a simple example: Newton's second law is

`F = ma`

. In words, it's force is equal to mass times acceleration. So the C# code for that equation is:
C#:

`force = mass * acceleration;`