Every book I know of makes the rollover based on deposit plus bonus. So if you have a 50% bonus up to $500 with a 5x rollover and deposit $1000; you'll get $500 in bonus money = $1500 starting balance. Multiply the starting balance by 5 gives you $7500 which is how much you must bet before you can withdraw.
Another thing to keep in mind- They also count towards the rollover requirement the lesser of your bet amount or your profit if you were to win the bet. So if you bet $110 at -110 to profit $100 using standard vig, only $100 will count towards the rollover. Likewise, if you bet $100 at +500 to profit $500, you'll only get $100 credited towards the rollover. This is to prevent people from betting super high chalk to meet the rollover (or at least make it more difficult).
Another thing to keep in mind- They also count towards the rollover requirement the lesser of your bet amount or your profit if you were to win the bet. So if you bet $110 at -110 to profit $100 using standard vig, only $100 will count towards the rollover. Likewise, if you bet $100 at +500 to profit $500, you'll only get $100 credited towards the rollover. This is to prevent people from betting super high chalk to meet the rollover (or at least make it more difficult).