Depends on your goals. If you wanna get healthier, hop on a bike and go all out. If your a serious strength trainee and trying to get as big and strong as possible riding a bike will only hurt your progress and recovery. Cardio needs to be done right. 30-45 minutes tops keeping the heart rate between 120 and 130 bpm.