A basic solution would be to save the time when the 24hr starts, then check if the current time > saved time + 24hrs. Use the expression Time(“timestamp”) which gets the device’s current unix timestamp in milliseconds.
Compare numbers: Time(“timestamp”) > saved timestamp + (1000 * 60 * 60 * 24) → reset field
Check this thread with a similar logic: