Fasting is different for everyone. Most clinicians recommend that if you're new to water fasting, you should aim for 24-48 hours the first time. From there, you can judge how your body reacts to the fast and go for more extended periods.
However, you should never exceed three days of water fasting unless you're under the direct supervision of a doctor or healthcare expert.