For pools, ANSI standards call for at least 1 turn over per day. Determine your water volume and the flow rate of your pump in gallons per minute. Then calculate the minimum pump run time for your pool. Installing a timer is recommended.
For spas, follow the manufacturers directions for operation as this can vary from spa to spa.