Hi @Thamires Bastos,
Per my test, you can use following json formatting to reach your requirement.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": "=if(@currentField >= @now - 86400000 && @currentField < @now, 'red', if(@currentField >= @now - 604800000 && @currentField < @now - 86400000, 'orange', if(@currentField >= @now - 1728000000 && @currentField < @now - 604800000, 'yellow', if(@currentField >= @currentField - 2592000000 && @currentField < @now - 1728000000, 'green','')))"
}
}
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.