If the benefits you receive from the primary country turn out to be lower than what you would have received from the secondary country where you also had rights the secondary country will pay a supplement equivalent to the difference between the two benefits

What is the correctly punctuated version of this sentence?
If the benefits you receive from the "primary" country turn out to be lower than what you would have received from the "secondary" country where you also had rights, the secondary country will pay a supplement equivalent to the difference between the two benefits.