Links

smallerEq

Learn how to use the Boolean "smaller or equal" (<=) operator in Notion formulas.
The smaller or equal (<=) operator returns true if its left operand is less than or equal to its right operand. It accepts numeric, date, and Boolean operands.
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().

Example Formula

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
Good to know: When comparing dates, "larger" = "later".
Good to know: The smallerEq (<=) operator cannot be chained in a Notion formula. A formula like 1 <= 2 <= 3 won't work. Use the and operator to get around this - e.g. 1 <= 2 and 2 <= 3.

Example Database

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.
Note: This example uses the 2022 Federal income tax brackets, but does not include deductions, exemptions, or credits.

View and Duplicate Database

“Total Tax” Property Formula

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: (prop("Gross Income") <= 10275) ? (prop("Gross Income") * 0.1) simply checks to see if Gross Income is less than or equal to $10,275, which is the cap for the 10% tax bracket.
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.

Other formula components used in this example:

About the Author

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.