Skip to Content
0
Former Member
Sep 28, 2008 at 11:21 AM

Calculating weeks

29 Views

Hi Experts,

Please see the code for my scenario:

  • Calculating the total no of week

l_diff_week = l_end_week - l_start_week.

l_total_week = l_diff_week / 7.

In l_total_week, i am calculating the total weeks. now if the diiference is a multiple of 7, I will get correct data.

How can I get the remainder?

eg.

l_total_week = 17/7 I want 3 weeks instead of 2.

Plz help me.

Regards

krishan