Events called every Nth day

Im working on a game to have events occur every set number of days. Is there a function/script component that allows for functions to be called using an if statement, for when a variabl is a multiple of ten for example.

Meaning

if(variable == multiple of ten){
function stuff
}

if (variable % 10 == 0){
Debug.Log(“Modulo is awesome”);
}