Another fix that worked for me. Find an awning/tarp dealer in your area. Remove the entire top (2 screws on mine) and take it to them. Tell them what you want and even pick out the color and/or design.
Leave it with them and it'll be back to you in a matter of days and you won't be guessing at sizes.
They work with square tubing and material every day.