Your pool's volume, unless you have a very unusual 20x40 vinyl liner is closer to 30,000 gallons, than 40,000.
A gallon of plain 8% Walmart store brand bleach will add about 4 ppm of chlorine to your pool. BUT, if you have low chlorine and no stabilizer, you'll be better off getting a 24# pack or 50# bucket of dichlor at Sams Club. Dichlor dissolves rapidly, and adds about 9 ppm of stabilizer for every 10 ppm of chlorine. See http://pool9.net/sams-dichlor24
If you get dichlor elsewhere, you'll have to be careful. Most stores - including Walmar - sell diluted dichlor that has added mystery goo. Read the label: if it says 56% available chlorine then it's OK. Watch out for TRICHLOR mixtures that have 56% available chlorine -- you don't want those.
Bookmarks