the problem is 1st company likely will make offer much sooner than second company. how long is the period to actually accept the offer, and isnt it important to acccept ASAP
there is usually some leeway, maybe a week or so. and you can always ask for more time