Working with duration and numbers

I have rental apartments and I am building a spreadsheet to show how many months each tenant has occupied his apartement and how much rent he paid in total.
Column A shows the move-in date
Column B shows the move-out date
Column C shows the number of months : (B-A)/30
Column D shows the monthly rent amount
Column E shows the total amount paid for the duration of the tenancy : C*D
Everything works out fine except for the amount shown in Column E.  Here is an example :
Column A (move-in date) : 2011-08-01
Column B (move-out date)  : 2012-05-31
Column C (total months) : 10
Column D (monthly rent)  : $500.00
Column E (total paid) : $5066.67
Column E should show $5000.00. 
I know that Column C is the problem.  Although the number shown in the cell is 10, the real number in the background looks like this : 10:3:12:00.
How do I get Numbers to multiply the amount in Column D by the number that appears in the cell (number 10)?

You are working with three types of value here: Date and Time values, Durations, and numbers.
When you subtract a Date and Time value from another, the result is a Duration. If both D&T values were entered as dates, the time part of those values will have been set to 00:00:00 (midnight at the beginning of that day), and the duration value will be an even umber of days.
The equation in column C assumes that all months have 30 days. Makes things neat, but unfortunately doesn't jibe with reality as defined by the calendar makers. B-A in your example returns 304d (304 days)
The result (5066.666666...) is correct for a rate of 304 days @ 500/30 days
The easiest fudge factor to make the number in C work out correctly is to convert the value in C to a number, then ROUND the number to the nearest whole number. For long periods, this will differ from the number of whole months, and it will not correctly calculate the results where the tenant moves in (or out) mid-month. If that's an issue, we can look for a more detailed solution (or check in the files to find a previous one, assuming I kept a copy).
Replace the formula in C with: =ROUND(DUR2DAYS(B3-B2)/30,0)
Regards,
Barry

Similar Messages

  • Does digital vga cable link from ipad2 to external  monitor  work with pages and numbers

    Are you able toutilize pages and numbers on an external monitor with and ipad2 by utilizing a digital VGA cable

    Hi ederg:
    You may want to download/update: Monitor file for Windows 7 (Thinkpad)
    The reason I say that is because the readme it states, "If you use the preload environment, you do not need this package. This package is required when you install Windows OS without the preload image."
    Since you setup the Thinkpad with Windows 7 Pro CD and no longer have the preload image, this may fix the problem.
    Also, have you checked the website for the displayport manufacturer? They may have updated drivers there that wouldn't have been on the update tool you used.
    *Edit* You can also check the: External monitors issues section here. It goes over some basic troubleshooting you may want to try first (I just came across it now)
    Let us know how it turns out!
    Was this or another post on the forum helpful? Click the star on the left side of the screen to give kudos! Did someone solve a problem you encountered? Mark it as "solution provided" to help others with the same problem.

  • I purchased a IPad Air with Pages and Numbers included. I was told I could use these apps on my mac book and other devices. How do I sync or access these from my mac.

    I purchased a IPad Air with Pages and Numbers included. I was told I could use these apps on my other devices like my MacBook. How do I sync or add these to my macBook?

    the free apps are only for ios device (iphone ipad ipod touch) and do not work on mac computers. if you do get pages and numbers on your mac though you can sync the information using icloud

  • My contacts all got deleted from my phone, and was replaced with names and numbers of people I've never met before.

    My phone was working as normal, then all of a sudden when I checked my text messages all the names of my contacts got replaced by their actual phone numbers. When I checked my contacts, it looks like everyone got deleted from my phone, and was replaced with names and numbers of people I've never met before. Even when I check my icloud for a backup it has the same issue. I don't know how this is possible and not certain as to how to rectify and get my contacts back.

    Hi Also iPhone, need update to ios 8.1.2 do this over WiFi Use same Apple ID & Password. Cheers Brian

  • NXT Flatten to String Not Working with Clusters and Arrays

    Hello,
    My name is Joshua and I am from the FIRST Tech Challenge Team 4318, Green Machine. We are trying to write a program that will write to a configuration file and read it back. The idea is that we will be able to write to a config file from our computer that will be read by our autonomous program when it runs. This will define what the autonomous program does.
    The easiest way to do this seems to be flattening a data structure to a string, saving it to a file, and then reading back and unflattening it. The issue is that the flatten to string and unflatten from string VIs don't seem to work with arrays and clusters on the NXT. It does work when running on the computer. We've tried arrays, clusters, clusters in arrays and arrays in clusters, none seem to work. Thinking it was something to do with reading the string from a file, we tried bypassing the file functionality, still not working. It does work with basic data types though, such as strings and numbers.
    No error is thrown from what we can tell. All you get is a blank data structure out of the unflatten VI.
    The program attached is a test program I've been working on to get this functionality to work. It will display the hex content of what is going into the file, coming out of the file, and then the resulting data from the unflatten string, as well as any errors that have been thrown. The data type we are using simulates what we would like to store. There is also a file length in and out counter. The out file is a little larger because the NXT write file VI adds a new line character on to the end (thus the use of the strip white space VI). This character was corrupting even basic data types saved to file.
    I would like to know if there is a problem with what we are doing, or if it is simply not possible to flatten arrays on the NXT. Please ask if you have any questions about the code. Thank you in advanced!
    Joshua
    Attachments:
    ReadableTest.vi ‏20 KB

    Hi jfireball,
    This is a very interesting situation. Take a look at what kbbersch said. I also urge you to post in the FTC Forums. You posted your question to the general LabVIEW forums, but by posting to the FTC Forums, you will have access to others that are using the NXT hardware.
    David B.
    Applications Engineer
    National Instruments

  • FaceTime no longer working with Yosemite and IOS 8.1

    I have used FaceTime flawlessly for some time with no issue.
    After I upgraded to Yosemite on my MacBookAir and IOS8.1 on 5S and iPad air, I've had a problem connecting.
    When I get a call, all the devices ring (as they should) but it will not connect on the first device I pick up on.  It says connecting
    but all the other devices keep ringing and finally it says I have a missed call.  The connection does not happen.  If I turn off
    all devices except one, it will work...... do we have a bug here??

    Thank you for responding to my issue.  I spent the better part of two hours trying to get this to work.  Bluetooth is enabled on all devices. Each computer is set in Preferences/General to allow Handoff.  All computers and iPhones are on the same WiFi network.  I toggled all of the major settings off and on.  Rebooted each of my computers several times. I finally conceded defeat.  Then my daughter asked to have a try at it.  She worked on the first MBP for about thirty minutes and informed me that she had gotten continuity to work.  And indeed, on her MBP late 2012 she is able to use the continuity features in both directions between her computer and her iPhone 6.  But it only works with Mail and Safari.  I asked how she accomplished this feat.  She said she turned off "everything" on her computer and iPhone (WiFi, Bluetooth, "Allow handoff" under Preferences/General) and then rebooted both the iPhone and the computer.  She then turned everything back on.  This worked for her.  So we tried the same thing on my MBP and iPhone 6.  Now continuity works partially. Email activity is mirrored on both the MBP and the iPhone regardless of which device initiates the continuity activity.  But Safari activity on the computer is mirrored on the iPhone but not in the opposite direction.  There is no continuity function for Pages in either direction.  The telephone connectivity works fine on all of my devices– 3 MBPs, Mac Pro, iPad Air, 2nd gen iPad and 3rd gen iPad.

  • Haven't been able to use pages for a while.  Keep getting following message.  Have tried reinstalling iWork, but no luck.  Same problems with Keynote and Numbers/Users/scottmcdonald/Desktop/Screen Shot 2012-03-14 at 9.39.52 PM.png

    Haven't been able to use pages for a while.  Keep getting following message.  Have tried reinstalling iWork, but no luck.  Same problems with Keynote and Numbers/

    Have you moved Pages from its installed location? Or just dragged a copy to your current system?
    It can't find some of its resources apparently.
    Peter

  • Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Hi ron1098,
    Try my application Dates to iCal. it runs on the Mac, but you can sync the calendar to your iOS device.
    See more about Dates to iCal here. It is £4 shareware with a 2 week demo.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Handoff not working with Yosemite and iOS 8

    I have three Macbook Pros in my household.  Two are mid 2012 models and the other a late 2012 model.  Each is supposed to support the handoff feature of Yosemite and ios8.  Everything seems to work properly between my daughter's late 2012 MBP and her iPhone 6.  But on the other two MBPs in our family the continuity feature does not work on either of them.  Receiving and sending calls works fine.  But the continuity does not work even though all three MBPs and all three iPhone 6 are on the same wifi network.
    I've tried all the suggestions that I could find.  Toggling off and on the various settings on the MBPs and the iPhones.
    John

    Thank you for responding to my issue.  I spent the better part of two hours trying to get this to work.  Bluetooth is enabled on all devices. Each computer is set in Preferences/General to allow Handoff.  All computers and iPhones are on the same WiFi network.  I toggled all of the major settings off and on.  Rebooted each of my computers several times. I finally conceded defeat.  Then my daughter asked to have a try at it.  She worked on the first MBP for about thirty minutes and informed me that she had gotten continuity to work.  And indeed, on her MBP late 2012 she is able to use the continuity features in both directions between her computer and her iPhone 6.  But it only works with Mail and Safari.  I asked how she accomplished this feat.  She said she turned off "everything" on her computer and iPhone (WiFi, Bluetooth, "Allow handoff" under Preferences/General) and then rebooted both the iPhone and the computer.  She then turned everything back on.  This worked for her.  So we tried the same thing on my MBP and iPhone 6.  Now continuity works partially. Email activity is mirrored on both the MBP and the iPhone regardless of which device initiates the continuity activity.  But Safari activity on the computer is mirrored on the iPhone but not in the opposite direction.  There is no continuity function for Pages in either direction.  The telephone connectivity works fine on all of my devices– 3 MBPs, Mac Pro, iPad Air, 2nd gen iPad and 3rd gen iPad.

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • I am considering buying an iPad 3. I have an iMac with OSX 10.6.8. On the iMac I have many photos and work with iPhoto and Photoshop Elements on the computer. Can I interchange or transfer photos and other work from the iMac to the iPad? How?

    I am considering buying an iPad 3. I have an iMac with OSX 10.6.8. On the iMac I have many photos and work with iPhoto and Photoshop Elements on the computer. Can I interchange or transfer photos and other work from the iMac to the iPad? How?

    velma Monreal wrote:
    I am considering buying an iPad 3. I have an iMac with OSX 10.6.8. On the iMac I have many photos and work with iPhoto and Photoshop Elements on the computer. Can I interchange or transfer photos and other work from the iMac to the iPad? How?
    Yes you can. In iPhoto create a Album with the photos you want in it. You can drag them from your Events folder. In iTunes with your iPad connected go to Photos by cliking on your iPad. You can then select the album or events you want.

  • Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click w

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

  • Internal Microphone not working with Quicktime and some other apps, yet it does for Skype.

    Internal Microphone not working with Quicktime and some other apps, yet it does for Skype. 
    Microphone works fine with Quictime on another mac, so I do know how to use it. The one where it is not working (A) had an external microphone and camera attached earlier, and indeed it does work with that external microphone, but not with the internal microphone selected; and (B) had RealPlayer installed previously.
    Any suggestions, please?

    Hi,
    Download Audio driver from here.
    Intructions how to install it in Vista/Win7.
    Extract this driver with Winrar.
    Open Device manager and expand the Sound, video and game controllers section.
    Right click on Either the High Definition Audio Device if you have the generic Microsoft drivers, or the Conexant High Definition SmartAudio 221 if you have older Conexant drivers and choose "Update Driver Software..."
    Click Browse my computer for driver software, then click "Let me pick from a list of device drivers on my computer"
    Click "Have Disk..." then Browse to the folder where the drivers were extracted  .......\V64 for 64-bit Vista/Win7. Click OK.
    Select one of the "Conexant High Definition SmartAudio 221" models in the list, there will be multiple identical entries.
    Click Next, and you're done.
    I'm not sure which one from the list will work for You.
    This drivers weren't test. So if You will try them and it will work for You let us now about.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Device not working with Log and Transfer in FCP

    I am trying to get some footage off my camera into final cut pro, but Final Cut Pro does not recognise my device when I try to use Log & Transfer
    The camera is question is a Cannon Legria FS20, here is a link
    http://www.canon.co.uk/ForHome/Product_Finder/Camcorders/flash_memory/LEGRIAFS20/
    I have looked around but can't seem to find any plug-ins to get it to work with Final Cut Pro, does anyone know any way I can get it to work with Log and Transfer
    Upon inspecting the hard drive, it saves video files in .MOD format with an .MOI file (which i assume is a metadata file
    How can I get it so that my device works with log and transfer?
    Thanks

    Hi -
    I did a little Google searching for information on your camera and it appears that it is a Standard Definition Camera that records in the MPEG-2 format.
    Log and Transfer only works with High Definition material.
    You will need to convert your video clips into a format that will work with FCP.
    I know nothing about working in PAL, but you want to download an free application called MPEG Streamclip from
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    This application will convert your MPEG-2 files into a format that you can use directly in FCP.
    Once you have converted the files to Apple DV-PAL, with the correct frame rate (25fps?) and field dominance you can either simply drag the converted files into FCP or import them using File > Import.
    Hope this helps.
    MtD

  • HT4437 The airplay on my i pad works with music and pictures but I cannot get it to work with safari and mirroring.  Does anyone know what I could be doing wrong? Thanks!!

    The airplay on my i pad works with music and pictures but I cannot get it to work with safari and mirroring.  Can someone help me to get things working?  Thanks!

    As an IT person, I can put my hands up to the same difficulty.  Then on double clicking on Home button, find AirTV symbol amongst Music control
    Solved my problem having spent hours looking for a complicated answer.  Well done Apple for hiding it so well.
    Brian

Maybe you are looking for