+ Reply to Thread
Results 1 to 4 of 4

Need help with time calculation that MAY span multiple days

Hybrid View

  1. #1
    Registered User
    Join Date
    05-20-2014
    Posts
    7

    Need help with time calculation that MAY span multiple days

    Second Dose Advisor testing.xlsx

    I am doing an informatics project for a nursing program and attempting to create a calculation that will advice nurses whether a medication is due to be given or not.

    The rule is very simple however the math involved often confuses nurses:

    If the amount of time between the last dose given and the next scheduled administration time is GREATER than or equal to ½ of the ordered dosing interval, the dose should be administered at the next scheduled dosing time.
    Example 1:
    A patient is ordered for 500 mg Flagyl IVPB q 8 hours (Standard Administration Times: 6:00 A.M.-2:00 P.M.-10:00 P.M.) at 3:00P.M. The first dose is given at 5:00 P.M. When should the next dose be given?
    Answer:
    Half of q 8 hours is 4 hours. The next scheduled administration time is 10:00 P.M. which is 5 hours from the first dose that was given at 5:00 P.M. (10:00. - 5:00 = 5 hours). Since this time is GREATER than 4 hours, give the next dose at 10:00 P.M. as scheduled.

    If the amount of time between the last dose given and the next scheduled administration time is LESS than ½ of the ordered dosing interval, the next scheduled dose would be skipped and the regular scheduled administration times would resume thereafter.
    Example 2:
    A patient is ordered for 1 Gram of Vancomycin IVPB STAT and q 12 hours (Standard Administration Times: 6:00 A.M. and 6:00 P.M.) at 1:00 A.M. The STAT dose is given at 1:30 A.M. When should the next dose be given?
    Answer:
    Half of q 12 hours is 6 hours. The next scheduled administration time is 6:00 A.M. which is 4.5 hours from the STAT dose that was given at 1:30 A.M. (6:00 – 1:30 = 4.5 hours). Since this is LESS than 6 hours, skip the 6:00 A.M. scheduled dose and give the next scheduled dose at 6:00 P.M.
    At first glance my calculator seems to give the correct answer. However as it gets later in the day and the next dose would be due the next morning or at midnight the math can get kind of fuzzy. The only way I can think to overcome this is to enter the entire date in the calculator (month date year hour minute) which would decrease the effectiveness of the calculator since it would take far longer to enter information.

    Can anyone think of an easy way to make this work? Perhaps adding a variable if the next dose is due midnight or after?

    Any help is much appreciated.

  2. #2
    Forum Contributor
    Join Date
    01-07-2013
    Location
    south africa
    MS-Off Ver
    Excel 2003-13
    Posts
    210

    Re: Need help with time calculation that MAY span multiple days

    Hello
    Missed your attachment and started building a calculator that accounts for potential varying intervals between dosages.
    Anyway, back to your sheet.
    Given your comfort with formula, I suggest you change the formula to :
    Formula: copy to clipboard

    =IF(C12=0,"",IF(IF(Q10<Q7,1-Q7+Q10,Q10-Q7)>=P12/2,"Give second dose","Hold second dose"))

    See if that work for you.

    Regards
    Most helpful to mark solved items as such (see help for directions). Star ratings are always welcome.

  3. #3
    Registered User
    Join Date
    05-20-2014
    Posts
    7

    Re: Need help with time calculation that MAY span multiple days

    Thanks Hajam!!! I actually added a dropdown and asked if the dose was due the next day (which added a one by formula), but your way is MUCH more elegant!!!! Thanks!!!!

  4. #4
    Forum Contributor
    Join Date
    01-07-2013
    Location
    south africa
    MS-Off Ver
    Excel 2003-13
    Posts
    210

    Re: Need help with time calculation that MAY span multiple days

    Welcome, and thanks for closing the thread.
    I enjoy a break from VBA and nice to solve some problems with plain old formula.

    Keep well

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Calculation of days between days and time
    By theprincesunil in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-27-2014, 03:09 PM
  2. Days in each month for a time span
    By jd87 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2014, 11:26 PM
  3. time difference calculation between days
    By astrosrini in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 06-25-2012, 06:47 AM
  4. Date span calculation
    By cm_027 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2007, 12:19 PM
  5. Dividing a time span into shifts - overlapping days
    By Heidi in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 02-27-2006, 10:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1