While I like what you did - it doesn't seem to work as expected.
I can only go back to Dec 2022 on the FB website, so the information is incomplete. Even so, after importing the PDF, the first thing I see is that I would have 455 XP, while I have 545 XP right now.
It also somehow assumes a april-to-march qualification period, while my qualification period runs parallel to calendar years (jan-dec).
I can share more info in DM if needed. See screenshots of the PDF and the web tool in the spoiler tag, hope it helps.