473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Converting Time to Billable Units

I have started my own consulting firm. I use access to record my time (BegTime and EndTime). I can net the 2 and get hours. How do I convert that to a number I can multiply by an hourly rate to get my total billings for that session?
Dec 2 '12 #1
8 2290
NeoPa
32,556 Expert Mod 16PB
How is it that the number of hours (which you say you have) is not what you want to multiply by the hourly rate to produce your billable value?
Dec 2 '12 #2
zmbd
5,501 Expert Mod 4TB
Where and how are you doing the calculation?
It could be that your result looks unusual depending on the format of the field.
Dec 2 '12 #3
I have two fields in a table to record BegTime and EndTime. In the table I have created a field BillableHours that is [EndTime]-[BegTime]. All three fields are stored as ShortTime Format. The result of 8:00-9:00 is 1:00 hours. When I multiply that result by $250 rate I get ($0.13).
Dec 3 '12 #4
zmbd
5,501 Expert Mod 4TB
That's what I figured...
In MS OFFICE, All time is stored as a #####.####### type number that accounts for the elapsed time from 12/31/1889:00h00s00 so when you do a direct subtraction as you've appeared to do you return the fractional part. You would have seen this if the third field was formated as a general numeric instead of a date/time field.
Running late out the door... more in a few momements
Dec 3 '12 #5
NeoPa
32,556 Expert Mod 16PB
Firstly, and I know I won't be the only one to point this out, you should certainly not be considering storing the result of your calculation (See Database Normalisation and Table Structures for reasons why not).

With that out of the way though, it seems you are treating hours within a date field as integral hours, when they are not. An hour in a date field is 1/24 of a day, which is the unit. Thankfully, this is very easy to handle by multiplying the time-differential (The result of your calculation) by 24.
Dec 3 '12 #6
That is exactly what I have done. Appreciate the help. Take your time.
Dec 3 '12 #7
Thank you NeoPa. I realize I need to change where I store results. For now just trying to figure out the calculation. I created a new field Billable Units. I multiplied BillableHrs by 24 it converted to a BillabeUnit of 1.0 which is good. When I multiply that result by 250 I get $3.

Nevermind. I think I figured it out. My rate is coming from a lookup table. That is where the problem is. I will figure that one out later.

When I input the rate directly in the table I get correct billable amount. Thank you to everyone for their help!!!
Dec 3 '12 #8
zmbd
5,501 Expert Mod 4TB
Well, I guess my discourse the datediff() function isn't really needed; however, just to finish my thoughts in #5

In the query you need somthing like:
Billable: [chargerate]*(DateDiff("h",[est_startdate],[est_enddate]))

Usings an open recordset in vba you need something like:
zfltCharge = [chargerate] * (DateDiff("h", [est_startdate], [est_enddate]))
Dec 3 '12 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Michael Jard | last post by:
there a shorter way then: datetime.fromtimestamp(time.mktime(time.strptime("20-3-2005","%d-%b-%y"))) thanks, Mike
5
by: Gord | last post by:
Many scripts and calendars call client side system time in order to make presentations. However, the client's time may be improperly set, if set at all, and/or the relevant time may be from...
4
by: Elie Grouchko | last post by:
Hi All 1. I need to convert the local-time of the server on which I run my website to UTC and I don't want to rely on the server local time and timezone (i.e. I don't want to hardcode the...
1
by: Math | last post by:
Hello PythonPeople.. Can anybody help me out? How do I convert a time of day from milliseconds? For example: I got the following time in milliseconds: 1,090516451769E+15 And I want to print it...
2
by: caveatashish | last post by:
i tried a lot to convert time from am/pm to 24 hrs using c# but unable to do it, same thing can be done easily in vb.net using format("hh:mm",08.30 pm) but getting problem with c# plz help me out
1
by: JLC | last post by:
I am having some trouble displaying the following. I want to display the startdatetime and enddatetime in a particular table using an offset. In that table is also a timezoneid that would...
18
by: kwikius | last post by:
Well lads :-)... looking at your Boost Units library the impression I get is that you got your library into boost Before writing anything much apart from some documentation, which was AFAICS even...
1
by: chopoff | last post by:
Hey, I have lots of times in the following format: g.i, so 12.30, 1.05, 2.25, 4.50 etc. However I would like to convert the time into a timestamp, so I can sort them by earliest to latest, as...
4
by: ahmurad | last post by:
Dear Brothers, I am struggling the following four Date-Time type values which were inputted into MYSQL database in different tables. As MYSQL Default Time Format: YYYY-MM-DD HH:MM:SS, So I used...
1
by: alexandreperr | last post by:
Hi folks, I am willing to create a TypeConverter that allows converting a string in a TimeSpan. The thing is I want to be able to enter a time with units such as: 75ms or m 125us or u 0.25s ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.