First of all, make sure the music is only inserted on the slide you want it
to start playing on and not on every or any other slides.
Second, open the Custom Animation task pane and click on the arrow next to
where the music is listed. Go to Effect Options. In the box that opens, you
can change the settings in the Stop Playing section to reflect what you want.
Let me know if you have any problems or need more clarification.