How long until you can urinate after surgery?

Really depends. Depends upon a number of factors. Type of surgery, medications and fluids given during surgery, etc. For most surgery you can urinate just fine right after the surgery. For some surgeries a catheter may be required.