For the most part where you place your commas is a matter of writing style, more so than grammar. There are rules, but they are flexible in regards to commas. Put one where you want to force the reader to take a break, put one between clauses if you want.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.