<aside> <img src="/icons/star_blue.svg" alt="/icons/star_blue.svg" width="40px" /> If you’re building Ultimate Notes yourself, you can copy and paste the formulas below into the relevant properties.

</aside>

https://www.youtube.com/watch?v=d5_kFtU9xnU

Notes Formulas

Updated (Short)

(dateBetween(now(), prop("Updated"), "days") + "d").style("c","b","blue","blue_background")

Duration

prop("Duration (Seconds)").empty() ? "" : 
	lets(
		hour,
		floor(prop("Duration (Seconds)") / 3600),
		minute,
		floor((prop("Duration (Seconds)") % 3600) / 60),
		second,
		floor(prop("Duration (Seconds)") % 3600 % 60),
		[
			hour < 10 ? "0" + hour : hour,
			minute < 10 ? "0" + minute : minute,
			second < 10 ? "0" + second: second
		]
	).join(":")

URL Base

prop("URL")
	.replace("[^]*//", "")
	.split("/")
	.first()

URL Icon

if(
	empty(prop("URL")),
	"",
	"🔗".style("c", "gray_background").link(prop("URL"))
)

Tags Formulas

Latest Note

prop("Notes")
	.filter(current.prop("Archived") == false)
	.sort(current.prop("Updated"))
	.reverse()
	.first()

Latest Activity

lets(
	noteActivity,
	prop("Notes").map(current.prop("Updated")).sort().reverse(),
	editedList,
	[prop("Last Edited Time")],
	concat(noteActivity, editedList).sort().reverse().first()
)

Note Count

lets(
	count,
	prop("Notes").filter(current.prop("Archived") == false).length(),
	plural,
	count == 1 ? " " : "s",
	count + " note" + plural
).style("c","b","blue","blue_background")