This depends on your physical condition. However, it is important for everyone not to overdo it in the beginning . If you do not give your muscles a rest, they cannot grow.
If you are a beginner, you should start by exercising two to three times a week for 20 to 30 minutes each time. After that, you can gradually increase the intensity and adapt it to your increasing fitness.
If you are an advanced exerciser, it is recommended that you train three to four times a week for 30 to 45 minutes each time. Ideally, you should include interval phases in these sessions.