Per example below, this is really racking my brain! How could I make the "Due Date" if it's not in between the pay period, for example, since today is Jan 24th, the 1st 4 bills should read "Day"FEB"16" and the last 2 should still read Jan as they are withing the pay period.
[TABLE="width: 235"]
<colgroup><col><col span="3"></colgroup><tbody>[TR]
[TD="colspan: 4"]Today is 1/24/16[/TD]
[/TR]
[TR]
[TD]Pay period[/TD]
[TD]1/22/16[/TD]
[TD]To[/TD]
[TD]1/29/16[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Amount[/TD]
[TD]Due Date[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 1[/TD]
[TD]$650.00[/TD]
[TD]2/1/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 2[/TD]
[TD]$200.00[/TD]
[TD]2/5/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 3[/TD]
[TD]$65.00[/TD]
[TD]2/10/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 4[/TD]
[TD]$50.00[/TD]
[TD]2/21/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 5[/TD]
[TD]$300.00[/TD]
[TD]1/22/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 6[/TD]
[TD]$25.00[/TD]
[TD]1/23/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 7[/TD]
[TD]$85.00[/TD]
[TD]1/25/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 8[/TD]
[TD]$40.00[/TD]
[TD]1/28/16[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 235"]
<colgroup><col><col span="3"></colgroup><tbody>[TR]
[TD="colspan: 4"]Today is 1/24/16[/TD]
[/TR]
[TR]
[TD]Pay period[/TD]
[TD]1/22/16[/TD]
[TD]To[/TD]
[TD]1/29/16[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]Amount[/TD]
[TD]Due Date[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 1[/TD]
[TD]$650.00[/TD]
[TD]2/1/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 2[/TD]
[TD]$200.00[/TD]
[TD]2/5/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 3[/TD]
[TD]$65.00[/TD]
[TD]2/10/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 4[/TD]
[TD]$50.00[/TD]
[TD]2/21/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 5[/TD]
[TD]$300.00[/TD]
[TD]1/22/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 6[/TD]
[TD]$25.00[/TD]
[TD]1/23/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 7[/TD]
[TD]$85.00[/TD]
[TD]1/25/16[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Bill 8[/TD]
[TD]$40.00[/TD]
[TD]1/28/16[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]