This really depends on what you are trying to achieve (and what your data and application stack looks like). It has become very hard to compete with cloud hosting, as if it’s onsite you need to purchase the hardware, have it maintained, pay for power, space, deal with backups etc. There is also a 4 year (or so) cycle where you need to purchase new hardware.