How long can I drive with bad camshafts?

I think you should include details of your vehicle. For my bmw 2001 525i, mechanic stated that it would be 2k+ to repair.

I drove for 2 more years and gave car to friend. Still works fine today without repair. My car was low value and thus low risk.