Calculating with hours

I am trying to make a duty time calculation but i can not find out how to add hours.
eg. 0800am till 0900pm = calculates 13 hours
any suggestions

There might be an easier approach, but this will work. By example:
In A1, type: 8:25AM
In A2, type: 4:45PM
then
A3=TIME(0,0,ROUND((A2-A1)24*6060,0))
and format A3 using the Inspector like:
The result will appear as:
8:20

Similar Messages

  • Absence calculations with 3 decimals

    Hi All,
    Whenever Employee having 8 hours shift and if he is absent for 1 hrs, then Absence is deducting with 0.13 (1/8=0.13). But my requirement is Absence should get deducted with 0.125 (1/8=0.125).
    I hv done with PCR like
    Zero= N
    num=1
    num/8
    addwt&leave
    Please help me out to get absene calculated with rate 0.125.
    Thanks in Advance,
    Sandeep

    Hi
    You can try like in this thread & let me know how it is working,
    https://scn.sap.com/thread/2138464

  • Preference calculation with batch management

    Hi experts,
    I am trying to find any documentation or manuals about how to set-up and use preference calculation in SAP-SD-FT or GTS based on batch management.
    Does anyone of you know how to do it and use such kind of "standard"-SAP-solution or is customer-specific programming essential.
    Any reply would be much appreciated.
    Best regards,
    Corinne

    Hi Corinne,
    Did you get anything for your requirement specific to Preference calculation with batch management. I am also looking for the same. let me know if you found something useful or if you created an enhancement to resolve this issue.
    Regards,
    Sumit

  • How Achieve timedseries calculations with out using AGO And ToDate function

    Hi,,
    1)
    How Achieve timedseries calculations with out using AGO And ToDate functionion
    this question asking in interview ..is it possible..?
    if yes please response as soon as possible..
    2) i have 2 cloumns Product and value...
    client requirement is they need ranks based on Value ..in dashboard .using dashboard prompt..edit box...if user enter any number (ex :5 ) report should show top 5 ranks if he enter 20 should be top 20 ranks..
    how to achive this ?
    thanks,
    raj

    Consider yor first question:
    1. Yes, we can create timeseries measures without using AGO and TODATE
    1. Create ALIAS of fact tabe in the physical layer
    2. Join the Time id from the ALIAS fact table with the YAGO_MONTH_ID column from your time dimension table (For calculating Year Ago variants) similarly join with MAGO_MONTH_ID column for Month Ago measures.
    3.Pull the ALIAS tables as an additional Logical table source in the Lgical layer
    4.Keep the mapping of the columns from the ALIAS table as its is
    5. For e.g If you pick Revenue from the Year Ago Alias table it will give you the "Prior Year Revenue"
    See if this helps you

  • Calculating with attributes occurs problems in aggregation ...?

    Hi Gurus, I have a question concerning the calculation with attributes:
    I have created variables (as replacement path) based on a product attribute. The variables (with the attribute value) do work properly and I get the right numbers in the lowest hierarchy level.
    Problem: within my hierarchy structure the query does not aggregate but reports errors ("X") in the upper hierarchy levels. How can I solve this problem?
    Thank you for answering.
    Greetings from T. Duong

    Hi, I already have tried this but it didn't lead to the required result.
    Still thank you for answering. I have seen in SAP Help that the options in extend properties might solve similar problems ... still mine cannot be solved by this. The problem is not the attribute value itself, as I found out.
    I have another thread here, where I defined my problem that occurs due to a formula collision between a structure and a hierarchy.
    Thank you.
    Best regards
    T. Duong

  • Generic calculations with changing number of channels

    Hello,
    I would like to make some basic calculations with a flexible number of channels. The point is that I get an error if I specify channels which are not existing in my calculations. For example :
    CCh("[1]/CNV",2)-CCh("[2]/CNV",2)+CCh("[3]/CNV",2)-...
    I think it should be possible to do it by using a script, but do you have any idea how to do it only with the calculator?
    Thank you in advance
    Jérémy
    Solved!
    Go to Solution.

    You can do easily by using Recoding mode for VBScript described in the following KB:
    http://digital.ni.com/public.nsf/allkb/B769AE10EDB656D28625692D00583166?OpenDocument
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Formula variable for date calculations with date-characteristics (2004s)

    Hi SDN,
    I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
    I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
    I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
    If other people experience the same problem, please respond. Then I know it's probably a bug.
    Kind regards,
    Daniel

    Daniel,
    Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
    If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
    I hope this helps.
    -Bala

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • Calculations with date fields

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

    I'm trying to do a basic calculation with a CRM date form in BC.
    I have a form field 'dateJoined' (though this could easily be the standard DOB field for the sake of this exercies) and I need to use javascript to calculate how many days have passed between today's date and the date in 'dateJoined'.
    The {module_customerfield} outputs a string, not a date object, which would be fine but the format of the string is not compatible with the .date object.
    I started down the path of lengthy substrings > variables, then linked variables > date object but after lines and lines of code, wondered if there was a simpler way that I was overlooking??

  • Calculations with Cumulated CKFs

    Hey,
    I need to make additional calculations on the values of a CKF that is marked as cumulated.
    We know that the calculation made on this column are executed against the non-cumulated value, and we basically need to execute them on the cumulated value.
    Can you please provide some insight on the ways to deal with this limitation?(BTW - we tried to check the "cumulated" checkbox for the calculated column and that doesn't help of course.
    Thanks,
    Gili
    Message was edited by: Gilad Weinbach

    Hi,
    and thx for the quick answer. But unfortunately the Server Complex Aggregate aggregation doesn't solve my problem. I also think I didn't express my self clear enough.
    My problem is, that I have the same tuple multiple times in my database table. When I sum this data up - I get wrong results. To avoid this I used the SUM DISTINCT aggregation. This worked very fine. But now I'm facing an other problem. I have to perform a simple subtraction.
    I have a fixed non measure value. I have to subtract the Sum Distinct measure from this fix value for a specified time periode.
    it looks like this:
    Pivot table
    Name --- Days available(non measure) --- Work date --- Days worked (SUM) measure --- Days worked SUM(Distinct) measure
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 2.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    SUM ---- 40 --- .... ---- 6 --- 3 -> Days left: 34 (wrong result - should be 37)
    I get the right result - but when I now try to calculate "Days available - Days worked SUM(Distinct)" I get the same results like I would do the calculation with
    "Days available - Days worked SUM".
    And is there a way to hide the multiple values in Days worked?
    thx

  • Calculations with Sum Distinct Aggregations

    Hi,
    I got a problem. I use in one of my analysis a Pivot Table. One of my measures which I sum up has multiple entries in my tables. So I decided to use a Sum Distinct aggregation. The Sum Distinct aggregation works perfect. But when I want to do basic calculations with the measure I get wrong results. It seems that in the calculation the aggregation is just a SUM and not a Sum Distinct. In the calculation I subtract the measure from a constant. But I only get wrong result with the redundant entries.
    Pivot table:
    Name --- Days available --- Days worked (measure)--- Days left (= Days available minus Days worked)
    Mr. A --- 60 --- 5 ---- 55
    Mr. A --- 60 --- 10 --- 50
    Mr. A --- 60 --- 35 --- 25
    ---------- Sum ---- 50 --- -45 (wrong result)
    Is there a solution to this problem?
    thx
    Edited by: Backlit on 31.07.2011 11:29

    Hi,
    and thx for the quick answer. But unfortunately the Server Complex Aggregate aggregation doesn't solve my problem. I also think I didn't express my self clear enough.
    My problem is, that I have the same tuple multiple times in my database table. When I sum this data up - I get wrong results. To avoid this I used the SUM DISTINCT aggregation. This worked very fine. But now I'm facing an other problem. I have to perform a simple subtraction.
    I have a fixed non measure value. I have to subtract the Sum Distinct measure from this fix value for a specified time periode.
    it looks like this:
    Pivot table
    Name --- Days available(non measure) --- Work date --- Days worked (SUM) measure --- Days worked SUM(Distinct) measure
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 2.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    SUM ---- 40 --- .... ---- 6 --- 3 -> Days left: 34 (wrong result - should be 37)
    I get the right result - but when I now try to calculate "Days available - Days worked SUM(Distinct)" I get the same results like I would do the calculation with
    "Days available - Days worked SUM".
    And is there a way to hide the multiple values in Days worked?
    thx

  • ESS Timesheet - Worklist items with hours

    Hi All,
    While working with ESS in time sheet, I see worklist with hours like below screen shot.
    If I select any of these worklist items, hours are being transfered as maintained in worklist. From where are these hours are coming by default into worklist? how to change those hours?
    Thanks! Babu

    hours are previously recorded times on these attributes, you can check customization in CAC1 for your cats profile also, are you using any CATS exit? Please check

  • Calculator with two numbers

    Dear Forum
    Im working a calculator with a textfield. It can calculate a if a enter only one number, but when i try to enter two or three doesnt work. I have test several codes but they are not working at all. Could any someone give me a hand. Please se te attach file.
    var numeroEntrado = "";
    var campoUno:int = 125;
    var campoDos:int = 20;
    var elResultado1 = 0;
    var elResultado2 = 0;
    proteinas.text = "125 grs.";
    colesterol.text = "20 mml.";
    colesterol.backgroundColor = 0x9999FF;
    textoColesterol.backgroundColor = 0x9999FF;
    numeroPorciones.maxChars = 3;
    numeroPorciones.restrict = "0-9";
    btn.addEventListener(MouseEvent.MOUSE_UP, suma);
    function sienteTecla(event:KeyboardEvent):void {
        if (event.keyCode == 48) { numeroEntrado = 0; }
        if (event.keyCode == 49) { numeroEntrado = 1; }
        if (event.keyCode == 50) { numeroEntrado = 2; }
        if (event.keyCode == 51) { numeroEntrado = 3; }   
    function suma(evt:MouseEvent):void{
            proteinas.text = "";
            elResultado1 = Number(campoUno) * Number(numeroEntrado);
            proteinas.text = elResultado1 + " grs"; 
            colesterol.text = "";
            elResultado2 = Number(campoDos) * Number(numeroEntrado);
            colesterol.text = elResultado2 + " mml" ;
            numeroPorciones.text = ""
    thanks
    IN

    It's difficult to say without understanding your intent.
    I don't see where you event listener for sienteTecla  is being assigned.
    If numeroEntrado is supposed to be numeroPorciones value (a guess) then perhaps you could just do something like this:
    function suma(evt:MouseEvent):void{
        if (numeroPorciones.text!="") {
            proteinas.text = "";
            elResultado1 = Number(campoUno) * Number(numeroPorciones.text);
            proteinas.text = elResultado1 + " grs";
            colesterol.text = "";
            elResultado2 = Number(campoDos) * Number(numeroPorciones.text);
            colesterol.text = elResultado2 + " mml" ;
            numeroPorciones.text = ""

  • Calculating Total Hours

    Has anyone had any experience calculating hours for a work schedule in numbers? I would like to figure out how to calculate total hours worked for a week on a work schedule. I am struggling to find the best way to do so. I would like to not have to use military time. What is the best way to add up the total time worked when I'm inputting the time as 7a to 5p (star time and end time in different columns). I need to have the columns formatted for time and date so it can be viewed with ease as well, does anyone know a formula to add up the hours worked each day.

    Hello
    This question was responded so much times that I don't wish to search in the old threads for you.
    Click the "more options" button,
    select the forum dedicated to Numbers
    enter a keyword like "total hours" or Duration which is a word often used in my responses about this question.
    Yvan KOENIG (from FRANCE jeudi 24 janvier 2008 21:39:08)

  • How to do a calculation (with times)

    Hi all! I'm creating a pdf form using Acrobat Professional CS4. My client wants the person using the form to type in the time they start their shift, the time they end their shift... and then have it automatically calculate the time they spent at work.
    At the end of the week (the pdf is for one week), she wants it to total up the total number of hours worked for that week.
    I see that I can do calculations, but I have no idea how to do this. Are there any tutorials or web sites that could help me with this? Thank you so much!
    Julie

    You might try looking around here
    http://www.planetpdf.com/

Maybe you are looking for