Formula Components

Formulas and Databases

Reference

Formula Examples

smallerEq

Learn how to use the Boolean "smaller or equal" (<=) operator in Notion formulas.

1

number <= number

2

Boolean <= Boolean

3

date <= date

4

β

5

smallerEq(number, number)

6

smallerEq(Boolean, Boolean)

7

smallerEq(date, date)

You can also use the function version,

`smallerEq()`

.1

2 <= 3 // Output: true

2

β

3

42 <= 42 // Output: true

4

β

5

// Boolean values equate to 1 (true) and 0 (false).

6

false <= true // Output: true

7

β

8

true <= true // Output: true

9

β

10

// For dates, "less than" equates to "before".

11

now() <= now() // Output: true

`<=`

) operator `1 <= 2 <= 3`

won't work. Use the and operator to get around this - e.g. 1` <= 2 and 2 <= 3`

.This example database is an *extremely* simplified tax calculator. It uses the **Gross Income** for each person to determine that personβs tax bracket, and outputs their total tax liability in the **Total Tax** property.

smallerEq

College Info Geek on Notion

1

// Compressed

2

(prop("Gross Income") <= 10275) ? (prop("Gross Income") * 0.1) : ((prop("Gross Income") <= 41775) ? (prop("Gross Income") * 0.12 + 1027.5) : ((prop("Gross Income") <= 89075) ? (prop("Gross Income") * 0.22 + 4807.5) : ((prop("Gross Income") <= 1.7005e+5) ? (prop("Gross Income") * 0.24 + 15213.5) : ((prop("Gross Income") <= 2.1595e+5) ? (prop("Gross Income") * 0.32 + 34657.5) : ((prop("Gross Income") <= 5.399e+5) ? (prop("Gross Income") * 0.35 + 49335.5) : (prop("Gross Income") * 0.37 + 1.62718e+5))))))

3

β

4

// Expanded

5

(prop("Gross Income") <= 10275) ? (prop("Gross Income") * 0.1) :

6

((prop("Gross Income") <= 41775) ? (prop("Gross Income") * 0.12 + 1027.5) :

7

((prop("Gross Income") <= 89075) ? (prop("Gross Income") * 0.22 + 4807.5) :

8

((prop("Gross Income") <= 1.7005e+5) ? (prop("Gross Income") * 0.24 + 15213.5) :

9

((prop("Gross Income") <= 2.1595e+5) ? (prop("Gross Income") * 0.32 + 34657.5) :

10

((prop("Gross Income") <= 5.399e+5) ? (prop("Gross Income") * 0.35 + 49335.5) :

11

(prop("Gross Income") * 0.37 + 1.62718e+5))))))

This formula uses a series of nested if-then statements (using the conditional operators

`?`

and `:`

) to "step through" a series of income caps.For example: **Gross Income **is less than or equal to $10,275, which is the cap for the 10% tax bracket.

`(prop("Gross Income") <= 10275) ? (prop("Gross Income") * 0.1)`

simply checks to see if If so, then Gross Income is multiplied by 10% to return the total tax. If not, then the formula goes to the next bracket, checks Gross Income against its cap, and so on.

β My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

Last modified 2d ago

Copy link

On this page

Example Formula

Example Database

View and Duplicate Database

βTotal Taxβ Property Formula