Avatar of hidrau
hidrau
Flag for Brazil

asked on 

How can I assemble a function that could show me how many hours I am late in my study, take a look

Hello guys

Function (hoursPerMonth : Integer; HoursStudied: String; IncludeWeekEnd: Boolean): String

I chose 30 hours per month in useful days, that is, 30 hours / 22 useful days
But I can tell the function if my shedule includes weekend, then my 30 hours chosen will be split into 30 days.

So imagine this situation:
I scheduled my total hours per month to 40 hours
Each useful day  I should study a little to accomplish my goal "40 hours"
the current date is  07/23/2008
I have studied 23 hours, of course I am late in my studied.
How many hours I am late? This is the return of the function

Thanks
Delphi

Avatar of undefined
Last Comment
Pierre Cornelius

8/22/2022 - Mon