Script Help - Buy/Sell-Order duration time

Hi guys! Does anyone know how to help me create a script for a token, which limits the duration of orders on the DEX, to a maximum of 24 hours instead of 29 days? Thank you so much.