Calculation & evaluation operator: dates, time, math, and table of contents via {}

Amplenote offers the ability to calculate relative dates and mathematical formulas by using surrounding your formula in curly braces, for example if you enter {1+1}, we will calculate the result and store the formula in a Rich Footnote like this: 2


Following are the types of calculations Amplenote can make, and how those can be used for more effective backlinking.


linkDate & time calculations

Date calculation is often combined with double-bracket syntax to link to notes named for future days, which will show up in Jots mode when that day arrives. You can see this in action in Shu Omi's video at the 13:15 mark.


Make sure to type the closing } bracket manually in order to trigger the evaluation of the expression inside.


linkDate calculation

Expressions used for date calculation are useful for:

Setting start dates using the Start at option in the Task Details: Creating tasks & to-do lists, and configuring task options#Set a "Start Time" (aka "Due Date");

Simply creating time stamps in your notes, wherever they are needed.

Relative date calculation:

{Today}
{Tomorrow}
{Yesterday}


Absolute dates:

{Monday}
{The weekend}
{September}
{October 31st}
{Oct 31}
{End of March}
{Beginning of April}
{First monday of September}
{Last friday of December}


Past and future dates:

{Next monday}
{Last week}
{Next year}
{In 14 days}
{A month ago}
{End of next month}


linkTime calculation

Time calculation:

{Now}
{10 minutes ago}
{In three hours}
{9 pm}
{21:30}


Date and time calculation:

{Today at 8pm}
{Tomorrow at 10:45}
{Tuesday 22:00}
{Mar 12 8am}


linkDate calculation: defining recurring rules

The following expressions don't work when used inside curly brackets { } like the rest of the examples on this page. Instead, these expressions are meant to be used for setting recurrence rules for your tasks using the Start at field in the Task Details: Creating tasks & to-do lists, and configuring task options#Repeat on fixed schedule.


Every 2 days
Every 3 weeks
Every 3 weeks on Friday
Every week on Monday and Thursday
Every weekday
Every 2 months
Every 3 months on the 21st
Every month on the 20th and 25th
Every month on the last Friday
Every 2 months on the first Monday
Every 2 years



linkMath calculations

E.g., 2 314.15 0.66

{1+1}
{pi*10**2}
{(1+1)*(12/36)}

link
Table of Contents

If you're a paying subscribing, you can insert a table of contents by entering {toc}. It will paste a hierarchical list of all the sections within your note.


Here's how it looks for this note:

And here's how that got made:


Meta


If you change the note headings, you'll need to regenerate the table of contents. In a future version of the feature, we plan to offer a table of contents that automatically updates. In the meantime, enjoy the opportunity to optionally embed Rich Footnotes in the non-changing ToC, or tweak its text vs headings. 😅