Costs depend on a lot of factors. If you are technically adept you might be able to get away with 20 bucks a month for the whole setup but most folks wouldn’t imo. I also have some old hardware I was able to use and upgraded it. Initial invest for a homeserver varies greatly depending on who you know.
If you want to know more please ask. You can also hit me up on matrix. Link in bio.