I need some help on a formula. I need to calculate the number of Quarters between two dates.

Details:

Q1: 1/1-3/31

Q2: 4/1-6/30

Q3: 7/1-9/31

Q4: 10/1-12/31

Examples and Conditions:

Start Date=1/1 and End Date=12/31. The Number of Quarters should be 4.

Start Date=4/1 and End Date=12/31. The Number of Quarters should be 3.

Start Date=1/1 and End Date=6/30. The Number of Quarters should be 2.

Start Date=4/1 and End Date=9/31. The Number of Quarters should be 2.

Start Date=2/1 and End Date=6/30. The Number of Quarters should be 1. The Start Date passed the beginning of Quarter 1 so it should no longer be counted.

Start Date=2/1 and End Date=8/30. The Number of Quarters should be 1. The Start Date passed the beginning of Quarter 1 so it should no longer be counted and the End Date did not reach the end of Q3.

Start Date=3/1 and End Date=11/30. The Number of Quarters should be 2. The Start Date passed the beginning of Quarter 1 so it should no longer be counted and the End Date did not reach the end of Q4.

Hope this makes sense. If not please let me know if there are more clarifications needed. Would really appreciate some help!

Thank you!