Help metafields -related to invetory

I want to change the delivery time information depedening on the inventory levels . I guess perhas with dynamic metafields?

If the inventory is 0 it will show delivery time of 7 days if its greater than 1 then it will show a text with 3 days

I hope I was able to explain the case.

Any help will be appreciated !