Hi David
25th Jan would be the last day if you arrived on 25th October and stayed in Spain/EU, as the 90th day would be 25th Jan, however you can spread these 90 days across a 180 day period. You stated that you left Spain (I presume the EU as a whole) at the end of November, if, for example you left on 30th November you would now have used 6 in October + 30 in November = 36 in total, meaning you still have a balance on 54!
Try using the app and putting the exact dates you entered and left in Oct/Nov, and then put in planned dates for 2022 - you will find that it is more generous than first thought!