I'm building a WordPress based application and the client will have an option to choose data entered over the last year in quarters. I would love to make this code much smarter but I'm not sure how to do it. The data looks something like this in JS:I'm building a WordPress based application and