As a simple baseline calculation, let's say you take 2 weeks off each year as unpaid vacation time. Then you would be working 50 weeks of the year, and if you work a typical 40 hours a week, you have a total of 2,000 hours of work each year. In this case, you can quickly compute the annual salary by multiplying the hourly wage by 2000. Your hourly pay of $31.50 is then equivalent to an average annual income of $63,000 per year.
Want to reverse the calculation? Start with the annual salary and answer the question: 63,000 a year is how much hourly?
Now let's consider the case where you get paid $31.50 an hour, but you get an additional 2 weeks of paid vacation. You get the same result if you work all year with no vacation time. In the previous case, we assumed 2 weeks of unpaid vacation, so your total year consisted of 50 weeks. But if you get paid for 2 extra weeks of vacation (at your regular hourly rate), or you actually work for those 2 extra weeks, then your total year now consists of 52 weeks. Assuming 40 hours a week, that equals 2,080 hours in a year. Your hourly wage of $31.50 would end up being about $65,520 per year in salary.
If you wanted to be even more accurate, you can count the exact number of working days this year. 2021 starts on a Friday (January 1, 2021) and ends on a Friday (December 31, 2021). It has a total of 365 days in the year including both weekdays and weekends. There are 104 weekend days (counting every Saturday and Sunday in the year), and 261 weekdays (Monday through Friday). So if you worked a normal 8 hour day on every weekday, and didn't work any overtime on the weekends, you would have worked a total of 2,088 hours over the 2021 year. You can then convert your hourly pay to a yearly salary of roughly $65,772 per year.
Remember that most companies give employees time off for various holidays, so that should really be included in the calculation. If your company decided to switch you from hourly pay to salary, you might get paid $65,772 per year, but you wouldn't actually have to work 2,088 hours since some of those days would be holidays. So your yearly income wouldn't necessarily change, but the actual number of hours you work over the year might be slightly less.
If you're working a regular 8-hour day, then you can simply take your hourly wage and multiply it by 8 to get your daily rate. So making $31.50 per hour is equivalent to making $252 per day.
Assuming you work 40 hours a week, you would make $1,260 per week.
If you look at an average month as 4 weeks, then you can estimate the average monthly earnings from $31.50 per hour to be $5,040 per month. Of course, some months are longer than others, so this is just a rough average. Another way to estimate the amount you make each month is to divide the annual salary by 12 months. For example, if you calculate the yearly total to be $65,772 per year, then your monthly average would be $5,481 per month.
ConvertUnits.com provides a tool you can use to calculate the equivalent annual salary based on your hourly wage. You can factor in paid vacation time and holidays to figure out the total number of working days in a year. The salary calculator will also give you information on your daily, weekly, and monthly earnings. Remember that a full salary with benefits can include health insurance and retirement benefits that add more value to your total annual salary compared to similar hourly rates. You may also want to factor in overtime pay and the effects of any income taxes on your take home pay. Type in your own numbers to convert hourly to annual pay.