Start with riding the bike for at least 20 minutes and aim for one hour. Work out at a pace that you can manage while still being able to talk to others. If you want to be more specific you could measure your heart rate and adjust the resistance/speed accordingly.
exercise bike