+ Reply to Thread
Results 1 to 7 of 7

Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

  1. #1
    Registered User
    Join Date
    02-15-2005
    Location
    Calgary, Alberta
    MS-Off Ver
    2010
    Posts
    11

    Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

    I found it hard to adequately convey my question in the title - hopefully there's enough meat to attract some attention.

    What I'm doing: trying to regain control of my finances. I have so many automatic withdrawals - life insurance, house insurance, car insurance, mortgage, taxes and so on, that I find it difficult to predict when the payments are coming out, relative to my bi-weekly pay day. I have created a sheet that can determine the frequency (monthly or bi-weekly), calculate the next withdrawal date, convert that date to a work day if required, determine whether that date falls within the current pay period and sum up the payments.

    What I'd like to do, is extend the look into the future for several pay periods (let's say 4 to avoid ambiguity). I can do it by tweaking the formulas but they either a) become so large within a single cell that deciphering them is nigh impossible or; b) require three columns for each date. I'm looking for a simpler / cleaner method to do this.

    Fair warning - I had to google to find the solutions I do have and I know they're not elegant.
    Attached Files Attached Files
    Last edited by Canuck 'Eh; 02-15-2014 at 06:54 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

    I made some minor modifications to the sheet - moved Total to one of first rows - may seem crazy but gives easiness at the stage of preparying.
    once the sheet is almost ready - you can move it below data (as most people got used to.)
    All formulas below refer to this new layout.

    First, to have universal formula, I'd get rid of TODAY in calculation of next payment for specific period. Instead I would use the most recent payday.
    Then use WORKDAY(day_before,1) which will return first working day at or after the day instead of calculations of day of week etc.
    WORKDAY allows also to include bank holidays in calculations - optional third argument.

    so now in E4 we have:
    Please Login or Register  to view this content.
    copied down and right
    (note that I changed Campus payment mode to quarterly to better show how it works)


    Next: everything for one payday can (and shall - to keep things neat looking) be done in single column.

    Instead of columns returning true/false for date conditions and then SUMIF I used SUMIFS (You do not disclosed excel version in your profile, but the attachment is in xlsx format introduced together with SUMIFS function in excel 2007)
    in E2:
    Please Login or Register  to view this content.
    and copied right
    This works perfect for future periods, but wor this bi-week, as you were payed on 11 and mortgage already has been payed you are more interested in E3:
    Please Login or Register  to view this content.
    (this one not copied - only here)


    I also used two simple conditional formatting rules based on AND formulas

    And that's it.
    3 formulas for whole sheet.
    (plus your paydays calculations - 1 and a half ;-) formula
    Why half? Because =F1+14 i'd count as no more than 0.25 of "whole formula" :-P

    Elegant - isn't it? :-D

    Enjoy!
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    02-15-2005
    Location
    Calgary, Alberta
    MS-Off Ver
    2010
    Posts
    11

    Re: Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

    Much more elegant and streamlined, and a straight-forward solution. Thank you very much.

  4. #4
    Registered User
    Join Date
    02-15-2005
    Location
    Calgary, Alberta
    MS-Off Ver
    2010
    Posts
    11

    Re: Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

    Actually - there's a small bug in there. If the future bill date lands on a future pay date, it gets skipped all together. For example, if you have a start date of January 6/14 on a monthly cycle, the May due is also the 6th, which coincides with the pay cheque date for that period. The formula will calculate the due date for the bill in that pay period as June 6, so it's not that it shows in the wrong period, it doesn't show at all (May gets skipped)

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

    Great you noticed it.

    Have you checked it in original version?
    I can see it there too.
    So it is an inherited bug :-D

    I think that to avoid problems in monthly/n-monthly withdrawal happening on payday
    DATEDIF($A4,E$1-1,"m")
    shall be used instead of
    DATEDIF($A4,E$1,"m")
    so try:
    =WORKDAY(IF($B4="Bi-Weekly",MOD($A4-E$1,14)+E$1,EDATE($A4,CEILING(DATEDIF($A4,E$1-1,"m")+1,VLOOKUP($B4,{"Monthly",1;"quarterly",3;"semi-annual",6;"annual",12},2,0))))-1,1)

    copy and paste special as formulas only to keep conditional formatting unchanged.
    Then go for further tests.

    Next test for you:

    I assume that bank is doing withdrawal in the morning "interbank exchange session" so you have to had big enough balance in the morning.
    (This is how it work in my country. You, as for profile data live "nowhere" so I can't even check with Google how it is organised there.)
    Even if your employer also pays morning on the payday - the monies are visible on your account after the first (in our case sometimes after the second) interbank exchange session.
    So usually (depending on bank rules and allowed debt), bank will block the withrawal, because balance is too small.
    (Of course only if you are really going near the edge - if you keep "buffor amount" on account - no problem)

    If bank tries to make next approach to do withdrawal later on that day - also no problem - your wages are already there.
    But in our case bank makes second attempt only next day (and it means you were past due).

    So - please comment on the above.

  6. #6
    Registered User
    Join Date
    02-15-2005
    Location
    Calgary, Alberta
    MS-Off Ver
    2010
    Posts
    11

    Re: Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

    In all honesty, I'm not positive, though I have seen precisely the activity you describe (withdrawals recorded before deposits causing payment issues).

    In cases where a payment has been stopped because the withdrawal was recorded before the deposit, they don't re-attempt and they kindly charge you an insufficient funds fine, as will the people who attempted to withdraw payment. Handy.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Automatic Withdrawls: Calculate future dates, convert to workday, which pay period

    So my honest advice is to treat for these calulations that your payday is a day later than an actual one.

+ 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] Calculate Date that is X number of biz dates in the future
    By tahoeast in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2012, 06:45 PM
  2. Replies: 19
    Last Post: 09-16-2009, 07:22 PM
  3. Replies: 15
    Last Post: 09-16-2009, 12:02 PM
  4. how to calculate dates that are 30 & 60 days in the future...
    By marcusp2001 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2008, 09:21 PM
  5. Calculate future dates at 6 month intvls...?
    By ederoche in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2007, 05:15 PM

Tags for this Thread

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