Calculate number of hours per week and limit
Hi,
I have a list in SharePoint that manages over time.
I need to set a limit for a user for 15 weekly hours that he can ask for OT.
Is there a way to limit once the user passes the limit above?
Thanks a lot in advance
Sum the total number of hours person worked on.
Create a calculated column and
http://msdn.microsoft.com/en-us/library/office/bb862071%28v=office.14%29.aspx
Calculate the difference between two times
To present the result in the standard time format (hours:minutes:seconds), use the subtraction operator (-) and the TEXT function. For this method to work, hours must not exceed 24, and minutes and seconds must not
exceed 60.
Column1
Column2
Formula
Description (possible result)
06/09/2007 10:35 AM
06/09/2007 3:30 PM
=TEXT([Column2]-[Column1],"h")
Hours between two times (4)
06/09/2007 10:35 AM
06/09/2007 3:30 PM
=TEXT([Column2]-[Column1],"h:mm")
Hours and minutes between two times (4:55)
06/09/2007 10:35 AM
06/09/2007 3:30 PM
=TEXT([Column2]-[Column1],"h:mm:ss")
Hours, minutes, and seconds between two times (4:55:00)
If this helped you resolve your issue, please mark it Answered
Similar Messages
-
How to calculate Number of Hours between 2 dates
Hi,
I have a Column in a table of datatype DATE i.e. Update_Date. Now How do I calculate number of hours passed starting from this date entered in the Update_Date column to SYSDATE. e.g. if the date in column is 2-FEB-2009 and the sysdate is 2/2/2009 2:07:40 AM it should give me 24. How can I get this number of hours.
Update_Date - Sysdate = Number of Hours.
ThanksWhen you subtract two dates in Oracle, you get a difference in terms of days. Just multiply that by 24 to get hours.
SELECT (sysdate - update_date) days,
(sysdate - update_date) * 24 hours
FROM your_tableThat said, it is not obvious how your example works. You state
if the date in column is 2-FEB-2009 and the sysdate is 2/2/2009 2:07:40 AM it should give me 24Since both dates are on February 2, 2009, the only difference is in the time component. If we assume that the time component of the UPDATE_DATE value is midnight since it is not specified, there is a little more than 2 hours of difference between the two dates. How is it that you determine there are 24 hours of difference?
Justin
Edited by: Justin Cave on Feb 2, 2009 10:39 AM -
I am looking for an simple app to do invoices. I only need to send around 6 invoices per week and they are usually paid by cheque. I need to be able to tick these as paid and keep a list of unpaid invoices so I can send reminders. Any suggestions please?
I am looking for an simple app to do invoices. I only need to send around 6 invoices per week and they are usually paid by cheque. I need to be able to tick these as paid and keep a list of unpaid invoices so I can send reminders. Any suggestions please?
-
When using TM with an external drive, can I connect and use it occasionally for backup and disconnect it between backups, say one backup per week? Or does it need to be connected all the time when the computer is on?
TimeMachine works better if it's nearly always connected.
For addtional backup like what your needing, consider a bootable clone in addition to TM.
Most commonly used backup methods -
How to configure JSpinner to accept number of hours (with mins and secs)
I'm having a problem trying to figure out a simple way to enable a JSpinner to do allow the input in this format:
n hours : n minutes : n seconds
ex: 100 : 0 : 0, 1:59:59, 25:30:00
Where n hours could be from 0-n (not restricted by 24 hours) and minutes and seconds are, of course, < 60. That is, I can enter number of hours, not a date, or a specific time in a day.
I'm thinking the only way to do this is with a custom spinner model and custom editor? Or is there a simple way I can make the date model in spinner to allow me to do this?
Thanksimport java.awt.*;
import javax.swing.*;
import java.util.*;
public class Test2 extends JFrame {
public Test2() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container content = getContentPane();
content.setLayout(new FlowLayout());
content.add(new MySpinner());
setSize(300, 300);
setVisible(true);
public static void main(String args[]) { new Test2(); }
class MySpinner extends JSpinner {
public MySpinner() {
setModel(new SpinnerDateModel(
new GregorianCalendar(2004,0,1,0,0,0).getTime(),
null, null, Calendar.DAY_OF_YEAR));
setEditor(new DateEditor(this,"HH:mm:ss"));
}??? -
How to calculate number of hour for projects
Hello Experts
I got a table which has all the information about employee. I need to find the number of hours an employee worked on a project. Let say employee ‘ABC’ worked on 2 different projects. I need to find out how many hours he worked on each project. In my table I’ve
employee_id, employee_name, proj_startdate, proj_enddate, finishtime fields.
Can please somebody show me how I can find out the hours?
Thanks a lot in advanceit's useless...
but you need to add a field 'project_id', if an employee works for multiple projects..
furthermore, you can also add a field named like 'working_hours' into your table...
your table new structure, let's say the table name is employee
employee_id, employee_name, project_id, proj_start_date, proj_end_date, working_hours
then you can use the below codes to update it and make your data be more clear...
UPDATE employee a
SET a.working_hours = (SELECT (proj_end_date-proj_start_date)*24 FROM employee b
WHERE a.employee_id = b.employee_id
AND a.project_id = b.project_id);
BUT, you have to add a constraint on your table to make the fields(employee_id, project_id) be unique -
My iphone 4s frequently shutdown (atleast once a week) and every time I need to restart again. Please advice if any solution or I need to replace the unit which I bought, 2 months back, purchase online from apple stores.
Hello Ingo2711,
Many thanks for providing necessary procedure to re-setup my phone. I able to complete all the recommended steps sucessfully and restore my data from the backup. Await to see the result and will update to you.
Kind Regards
Abdul -
I need a program to work instantly, every time. Instead, I have to sign on, give my password EVERY TIME, and it winds up taking HOURS out of my work week.
Why is this and how can I make it stop?Your mail site usually will set a cookie. So in order for the site to recognize you after you exit and restart Firefox, these things have to be true:
* You are not vising your mail site in a private window
* You didn't change Firefox's default setting of accepting persistent cookies from all servers (first party and third party)
* You do not have Firefox set to clear cookies at shutdown
* You have not installed any add-ons that clear cookies
* You do not have any external cleaning/security/privacy software that clears Firefox cookies
If you're not sure about your cookie settings, check out the Privacy panel of the Options dialog:
orange Firefox button (or Tools menu) > Options > Privacy
If you have "Firefox will: remember history" then cookies are accepted and retained.
If you have "Firefox will: use custom settings for history" you can check your cookie settings below that line.
If you have "Firefox will: never remember history" then you are going to be using full time private browsing and cookies are discarded between sessions.
If cookie settings are okay, and you would like advice on your extensions, it would be helpful if you could post a list of them. Open the Troubleshooting Information page using either:
* Help > Troubleshooting Information
* type or paste about:support in the address bar and press Enter
In the upper left corner, click the Copy text to clipboard button, then paste into a reply.
After previewing, you will see there is some extra information below the list of extensions that you can edit out if you like. -
Number of licenses per individual and per company?
Hi,
My question is How many number of Blackberry Vendor licenses can a Company have?
and How many number of Blackberry Vendor licenses can any individual have?
For example: If I applied for BB vendor license by providing Company's official business documents and I'm approved as a vendor to distribute applications over BB App world. Later, Can somebody apply for vendor license representing the same company with the same business documents?
Thanks in Advance
Vinay SThere is no hard number here. Every service is going to use a different amount of RAM, and even the same service is going to use different amounts of RAM depending on what you're doing with it.
Take web services, for example. Each web connection may take a few megabytes of RAM if it's for a simple, static page, but could take way more than that if is a complex dynamic page, loading data from a database, etc., etc. -
How to determine minutes per week with inconsistent start and end times...
ver -> 10.2.0.4
I'm looking for some guidance or some pseudo code in how to attack the following:
Data
target_nm status start_timestmap end_timestamp
DEVDB Target Up 8/28/2009 9:49:08 AM 9/26/2009 6:34:23 PM
DEVDB Target Down 9/26/2009 6:34:23 PM 9/26/2009 6:36:23 PM
DEVDB Target Up 9/26/2009 6:36:23 PM How can I display, per week, the number of minutes a status was held? There are 10,080 minutes per week and I'm using to_char(to_date('8/28/2009 9:49:08 AM', 'mm/dd/yyyy hh:mi:ss AM'), 'WW') to determine the week number. The end result would be something like, in example:
target_nm wk up down
DEVDB 35 [x minutes] [y minutes]This, at first, seemed pretty straight forward, but where it gets wrapped around the axle is that the records of a status can span a number of weeks between the 'start_timestamp' and the 'end_timestamp.'
My current approach is to isolate this down for a given day...if something is "started" then determine the number of minutes between trunc(start) +1 and start . If it has "ended" then determine the number of minutes between trunc(ended) and end.
Resulting in something like:
target_nm status day_of_year minutes_of_status start_timestamp end_timestamp
DEVDB Target Up 8/27/2009 296.3333 8/27/2009 7:03:40 PM nullAny advice, a different perspective, or pseudo code would be greatly appreciated on how to turn the corner on showing these status's as they break down per week.
Regards,
-abeHi,
As you said, you just need to compute SUM (end_timestamp - start_timestamp), GROUPing BY week.
The tricky part is what happens when an event is not entirely within one week. For example:
DEVDB Target Up 1/07/2009 11:00:00 AM 1/08/2009 2:00:00 PMThis event lasted 3 hours, but you want to count this as 1 hour in week '01', and 2 hours in week '02', not as 3 hours in either week.
The solution is very much like the one in the following thread:
[8i] Date/Time calculation problem...
Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data.
Edited by: Frank Kulash on Mar 16, 2010 12:16 PM -
Time Machine not thinning older backups (Hourly= Daily= Weekly)
Ever since upgrading to Snow Leopard, Time machine has kept hourly backups of my computer.
In the past under 10.5, after about 24 hours, TM would delete all but the last hourly backup of the day and keep daily backups for 30 days, then after about 30 days delete the daily backups except for 1 per week and keep weekly backups thereafter.
Now, TM does it's hourly backups like normal, but I have hourly backups from today all they way back to 29 August (about 24 hours prior to when I upgraded to 10.6) and then weekly backups from that date until 30 July (i.e. about 30 days prior to the upgrade).
Called AppleCare and talked to 2 different people. Both questioned whether TM really was even supposed to thin old backups like this (um, it's written in the da^^ preference pane, guys) and one admitted that he doesn't even use a Mac at home and that in the support office they don't have TM on their macs, so he's never used it!
Needless to say, not sure how to a) get TM to start thinning the backups like it should and b) also thin out all the previous backups so I don't have a 2 month glut of frequent backups.
I've looked all over and found nothing. Anyone with some advice? I'd like to avoid killing all my backups and starting over.Forensic
I suggest you follow the advice posted above by V.K., once installed it will provide a log of what TM is doing.
Once you have that info, post back here and someone far wiser than I will help you to resolve the issue. -
Row 1 Error - Please set the Full Time Equivalent Hours Per Day implementat
Hi all
While defining the Enable Workplan Structure in oracle projects i am getting the below error
Row 1 Error - Please set the Full Time Equivalent Hours Per Day implementation option before enabling the Workplan Structure.
Plesase can you share and doc or guide where can i set this implementation option
Thanks in advanceHi
Navigate to Projects> Setup > System > Implementation Options
There is a tab named - Staffing
On that form you should enter the Full Time Equivalent Hours - Per Day and Per Week.
Dina -
Optimize Performance in getting Quantity of Open PO per Material and Plant
Hi,
Recently I have a project that requires me to get the quantity of the open Purchase Orders (no Goods Reciept yet). The current code I have to get this are as follows (with some alterations):
<b>select MATNR WERKS MENGE
from EKPO into table i_purchase
for all entries in i_tab
where MATNR = i_tab-MATNR
and WERKS = i_tab-WERKS
and ELIKZ = space.
loop at i_tab.
loop at i_purchase where matnr = i_tab-matnr
and werks = i_tab-werks.
i_tab-menge = i_tab-menge + i_purchase-menge.
endloop.
modify i_tab.
clear i_tab.
endloop.</b>
Now there is nothing wrong with the program here its just that the user I know would tend to proccess a large number of materials per report and would cause a <b>Time Out</b> because of the data being proccessed. It also needs to be run online so background processing is out of the question.
Question is, is there a better way where I can get the same results with a better performance and possible avoiding the same time out again (i.e. other database tables, improved logic, coding impmlementation, etc.) ?
Hope to hear from you soon.
Take care and good day.Hi,
Try this:
IN select stmt:
1. use select statement validating i_tab. like:
if i_tab is not initial.
select MATNR WERKS MENGE
from EKPO into table i_purchase
for all entries in i_tab
where MATNR = i_tab-MATNR
and WERKS = i_tab-WERKS
and ELIKZ = space.
endif.
2. Chk this possiblility: do not add elikz = space condition into wyhere clause of select stmt and remove unwated entries from i_tab using DELETE i_tab where elikz =ne space. this will surely improve performance of select stmt as elikz is not a key field. but this chk once.
In LOOP:
1. donot use loop stmt insterasd use read table stmt for that sort itab with fields MATNR WERKS. and then use BINARY SEARCH in thi s clause. using bs will improver ur prg perfromance drastically.
2. instead of loop at itab use field symbol this is also very help ful. but try above oprtion and then go for it... any way loop with fs is better than loop at itab .
Hope this will help u.
Jogdand M B -
Enterprise Global - working time v hours per day
Hi, can someone remind me whether I can set Hours per day and default start/finish times within the enterprise global template or is that a configuration that must be made inidividually by each user with project professional installed?
Thanks
SteveHi Steve,
It has to be set for each user with Project Pro installed.
That being said, you can configure GPO (Group Policy Management) to set automatically those options for all users.
Here are some references:
https://technet.microsoft.com/en-us/windowsserver/bb310732.aspx
https://technet.microsoft.com/en-us/library/cc740076(v=ws.10).aspx
https://msdn.microsoft.com/en-us/library/bb742376.aspx
https://technet.microsoft.com/en-us/library/cc753298.aspx
Hope this helps,
Guillaume Rouyre, MBA, MVP, P-Seller | -
PWA Timesheet - How to limit hours per day on timesheet submission?
I've set "Maximum Hours per day" limiation to 24 hours on "Timesheet settings and defaults" and it works when a user click "Save" on "Timesheet" view.
But when the user click "Send" without saving first, it bypasses this limitation and save the timesheet reporting with any amount of hours that the user entered.
Is there any way to solve this and limit the user so he won't be able to submit more than 24 hours per day?
ThanksUnder configure timesheet settings and defaults
In the Hourly Reporting Limits section, specify the maximum and minimum hours allowed in a timesheet and the maximum number of hours allowed to be reported in a day. If team members report time beyond these limits, errors appear on their timesheets when
they submit them.
make it 8 hours then check.
kirtesh
Maybe you are looking for
-
Shipment of Free Item alongwith Parent Item (STO,Warehouse Picking and PGI)
Hi Experts, In Retail industries Vendor/Company promote offers to customer free items along with Saleable Product so increase footfalls and basket value. In case there is free item with parent item, PO will be created accordingly as free item. Is the
-
Music and photos from Droid to Iphone4?
I recently switched from Droid Incredible to Iphone 4, and I don't know how to get music and pictures transfered over. Can someone please help?? Verizon store told me to sync to iTunes, but didn't get an explanation of how...
-
Hi all, I have an application that uses a JTable to display various data from our database. My problem is that I now need to display this same information via the web as an image. This is the requirement and no way around it. I didn't want to have to
-
How to craete a 'annual leave 1/2day-AM' in ESS leave request
Hi , I have created 2001- subtype 670 : "annual leave 1/2day-AM". I wanted to see "annual leave 1/2day-AM" in the ESS leave request list down box ( already we have few ) ... please let me know what are the steps i need to follow ... thanks, sunitha E
-
How can I fix my overheating problem?
As many of you iMac users may have noticed, the only ventilation an iMac gets is through a single vent strip on the back of the computer. Unfortunately this system of ventilation does not always succeed in keeping the iMac cooled off in order to run.