If you don’t want to be called there to always it support it, go for off the shelf solution. Both qnap and Synology offer the same. When i looked half a year ago, i saw Synology as being more expensive at the time so went with ts464 qnap.
Qnap do provide a roadmap of support for older devices. So you have an idea how long they will remain supported for.
Not much to do with maths unless you go into calculation heavy industry. Coding is just problem solving and reading bad documentation 95% 0f the time.