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

  • SEARCH
  • Home
  • 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 6013139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:30:19+00:00 2026-05-23T02:30:19+00:00

Okay, I’ve been going round in circles for the last 2 days trying to

  • 0

Okay, I’ve been going round in circles for the last 2 days trying to figure this one out.

I am working on a system that handles ‘cases’. Each case has a type and each type has an associated SLA which can be specified in days, hours or minutes. In addition to this there is an administrative function which allows the user to specify the start and end time of the working day and which days in the week are worked. I should point out that working hours are the same for every working day. So for example, the working hours might be 9:00 to 13:30 on a Monday, Wednesday and Thursday. I’m not going to bother including holidays in this function just yet…It’s tough enough as it is!

Given the days and hours that are worked and the SLA,.. how can I calculate the date and time when the case breaches it’s SLA.

I get the feeling that since the minimum resolution of an SLA is set in minutes, I’ll need to convert everything to minutes first. Obviously the day/time that the case is created will have to be taken into account too. Other than those two nuggets of wisdom I’ll be honest,…I’m floundering 🙂

Absolutely any help would be hugely appreciated on this. It’s probably also worth mentioning that if there is a library out there to do this I’m happy to use it and move on. C# is my preferred language but any solution would be great

Lots of thanks in advance.

  • 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-05-23T02:30:20+00:00Added an answer on May 23, 2026 at 2:30 am

    Personally I would have a list of days in the week and the number of working minutes in each day. Loop through the list subtracting working minutes from the task until it is 0, while adding a full day’s worth of minutes to a “real-world time to completion” variable.

    If the task’s remaining minutes are less than a day’s working minutes then add those to the time to completion variable instead.

    That tells me how may minutes between task start and task completion, which can be compared to the type’s SLA.

    Not sure if it’s the best way but it’s a start 🙂 Hope it helps

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

Sidebar

Related Questions

Okay, I'm thoroughly stumped on this one. I'm trying to build a menu of
Okay so im working on this php image upload system but for some reason
Okay so I can't figure this out. Like a file that I using grep
Okay I've spent the last hour trying to find a solution to this but
Okay, this one is pretty obvious to everyone who use Django and frequently asked
Okay, so I'm trying to make a game that uses this algorithm: http://www.codeproject.com/Articles/15573/2D-Polygon-Collision-Detection But
Okay so I made this program to help me out with my homework and
Okay,I've been following this tutorial http://coenraets.org/blog/android-samples/androidtutorial/ Basically it gives me exactly what i need
Okay, bear with me on this, I know it's going to look horribly convoluted,
Okay, next PHPExcel question. I have an HTML form that users fill out and

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.