Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9181133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:12:51+00:00 2026-06-17T18:12:51+00:00

I’m quite thick when it comes to math cleverness and I need some help,

  • 0

I’m quite thick when it comes to math cleverness and I need some help, I need to implement a rota system where we’d get groups of people “on call” for a week, said groups will recur throughout the year.
This will be CGI scripts in Perl with a db in the backend.

Easier with an example, say 3 groups the 1st is on call from this Wednesday to next Wednesday when at midnight group 2 will be on call for the week on wednesday, after them the last group will be on call the same way. After the last group the first guys are on call again Wed – Wed and the whole thing keeps repeating.

It also has to accomodate temp changes to individuals in each group which will hold only for the current session and not for the whole series.

Imagine google calendar, basically that but developed buy one guy, me, and within a week, gotta love management.

Question:
What I’m thinking but don’t know how to do is identify, having the group’s static week number (group 1 week 1; group 2 week 2 .. etc), which group is “on call” right now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:12:52+00:00Added an answer on June 17, 2026 at 6:12 pm

    Simply divide the week number by the group number. But keep in mind that the first group will be equal to 1, the last group to 0.

    E.g. if you imagine the start of the year for 5 groups;

    for week 1 % 5 = 1; -> group one

    for week 2 % 5 = 2; -> group two

    for week 3 % 5 = 3; -> group three

    for week 4 % 5 = 4; -> group four

    for week 5 % 5 = 0; -> group group five

    And it repeats…
    for week 6 % 5 = 1; -> group one

    …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I need to clean up various Word 'smart' characters in user input, including but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.