Tax Season! I was employed for a period from x until y in a year and I get pay check of amount z on every alternate Friday of the week starting from first Friday since I am employed. Help me find out how much did I earn during my employment period.
Example
x = 01-Jan-2014 y = 14-Feb-2014 z = $2000 (x will always be <y)
This period has total 4 alternate Fridays which were my "pay-days", so the salary for this period was 4*2000 = %8000
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers89
Suggested Problems
-
28302 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15818 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2585 Solvers
-
Convert from Base 10 to base 5
325 Solvers
-
Write c^3 as sum of two squares a^2+b^2
331 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I like your "calendar" problems serie. They are efficient to understand how Matlab represent dates and times.