That is correct, but you are not accounting for the uncommitted writes happening on the table. Vacuum does a listing of the directories and cross references them with files referenced in the delta log and deletes what isn’t referenced in log. You need to provide a safety margin for files that are part of an active transaction to be committed to the log, otherwise they will get deleted before they are committed. You don’t necessarily need to use retain at five days, but very minimally you should do at least one day. 7 days is the default.