Thanks for posting your question in the Microsoft Q&A forum.
Based on your usage and programming software requirements, you can buy one-time purchase offices including 2021 or 2019.
And also, you can use Microsoft 365, which is a subscription-based service that includes the most recent version of the Office applications. It is licensed on a per-user basis.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **