Two schools of thought:
1) Better to be longer and you can cut it perfectly for each bar with a miter or chop saw
2) Better to be slightly short because the brackets will allow you to center as needed.
Depends on your OCD.
My measurements come out to a very tight fit of 43.65625 (43 & 21/32)