Planar Binding: 3096
Our character:
1 level Cleric to qualify for Book of Exhalted Deeds we are attuned to and have read.
19 levels in Divine Soul Sorcerer with the Twinned Spell metamagic. This also lets us learn planar binding as a sorcerer/cleric spell. †
Boon of High magic for an additional 9th level spell slot
We're an elf so that we can trance for 4h instead of taking an 8h long rest
We have helpers who can summon elementals. Which doesn't matter, we just need 2 at any one time.
9 pearls of power and a mountain of gems each worth 1000 gp.
The key is twinning an upcast planar binding. When upcast it binds the two targeted elementals to our plane and importantly command for X days. If we then cast planar binding on the previous X days we command 2×X elementals for each spell level we can do that.
This is where our Boon and Book comes in. High Magic gives us an additional 9th level spell slot and Book of Exhalted Deeds make all our slots count as one higher. The only effect of our 9th level slots giving 10th level slots is it costing us more to twin them.
Using our 10 9th to 5th level spells‡ we need 77 sorcery points. We get 19 from our sorcerer levels, 31 from converting our 1st to 4th level slots, and 27 from converting the slots regained using the pearls of power.
This results in the following twinned planar binding castings per day: 3×9th, 2×8th, 2×7th, 3×6th. This lets us accumulate a number of elementals up to
$$
3\times366\times2+2\times180\times2+2\times30\times2+3\times10\times2 = 3096
$$
At least for the last days, we have spendt 10h casting planer binding, 8 hours attuning to new pearls and 4 hours in trance.
†: There's an argument here that you'd need to prepare planar binding as a cleric for it qualify as a cleric spell for Book of Exalted Deeds. If so, we need 9 cleric levels giving us 8 fewer sorcerer points, but grabbing another pearl of power, we can still have enough points for twinning all but the last 6th level casting. This means the ruling nets us only 10 fewer elementals in the end.
‡: I have assumed you can't cast a 5th level spell using 4th level slots, even with BoED. If you (and your DM) think you can then it would add a measly 3 elementals to the sum.
There's an iteration of this method which uses Wild Magic Surges to regain spell slots (the 59-60 result) and sorcery points (99-00 result). For it we are at least 9 levels of cleric (for planar binding) and 9 levels of Wild Magic Sorcerer (for enough sorcery points), the last two is some full caster levels. We have Boon of High Magic and Boon of Spell Mastery. For the latter boon we choose a spell which requires an attack. For that attack roll we use Tides of Chaos, and on subsequent castings our DM has us roll a Wild Magic Surge to regain the use of that feature. (There are other ways to obtain this loop).
The outcome is that we repeat this until we've hit 59-60 and 99-00 (on average 50 tries or 5 minutes). So for each of these we can cast a twinned 9th level planar binding. Our day is then 4h of trance, 2 hours of WMS loop (we also have some grace time in here to ride out the negative effects our helpers can't dispel for us. Some pink-bubble mouth to be expected) for 18h of casting planar binding letting us accumulate $$18\times366\times2=13\,176$$
Elementals. Though do note that your DM needs to approve each time you roll WMS, though that seems a little void in the circumstances.
David Coffron gets a massive thank you for helping me hash out some of the real cheese of this answer.