p>Calculate Buttons can reference numbers from specific lines in your note using the <code>$line</code> syntax:</p><pre>
Bananas Have: 5  
Bananas Lost: 3

```button
name How Many Bananas Left?
type calculate
action $1-$2
color yellow
```
^button-bananas
</pre><p>The <code>$1</code> references the number on line 1 (5), and <code>$2</code> references the number on line 2 (3). The result will be <code>2</code>.</p><h2>Natural Language Math</h2><p>Calculate Buttons can understand natural language math expressi