Hi @gforber
It's not a stupid question at all. It's my fault I didn't explain it properly.
Please check if this example helps you.

I used the "Created" field to test but you can replace it with the name of the SharePoint column that stores the expiration date.
The OData is inserted when we do a "Get Items" so that we query the database and only retrieve the information that we want. This way we don't need to pull all information from the database.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Cheers
Manuel