MineSched - Custom Reporting - Period_work_days

Can someone explain the way Period_work_days works in custom reports

 

Using Help the definition indicates "The number of working days in the current period taking into account the resource working and holiday calendars."

 

When I list a number of resources, I wish to obtain the period workdays it only appears to work for the excavator mining the pits and not the loaders I am using to transfer ore from stockpiles. In my case we are using an ore haulage contractor so a loader to feed them and a loader to transfer from various stockpiles to feed the plant. Each of these resources has their own calendar consisting of different holidays (for periods not worked). I am not sure what I am doing wrong, or if it only works for resources mining the pits.

Answers 4
CM
CM 2025-12-31

I then noted the report option RESOURCE_TIME which I tried with the same result obtained using PERIOD_WORK_DAYS no matter what combination of other inputs I selected.

AC
AC 2025-12-31

Hi Chris, I'll attempt a bit of an answer for you but without seeing the code behind it my answer won't be definitive.  Some other guru's may be able to provide a better explanation.

In my testing (similar to yours) First thing to note is that only resources on mining locations are being reported.  Stockpiles are ignored. 
Second - PERIOD_WORK_DAYS will list the fraction of time that the location has been worked but only up to the maximum of 1.  For example, if you have one digger in the location going flat out every day, the value for PERIOD_WORK_DAYS will be 1 in that location for a daily schedule. For a weekly schedule, the value would be 7. (Seven days in the week) If you then put a holiday calendar on the digger that constrains it's work to half days only, the value for PERIOD_WORK_DAYS would be 0.5 in a daily schedule and 3.5 for a weekly.  If you have two diggers working in the same location and one of them works flat out and the other works half days, the value for PERIOD_WORK_DAYS will still only be 1 for a daily schedule and 7 for a weekly.  It will max out and not exceed 1 for each calendar day of the schedule in a location.

RESOURCE_TIME on the other hand will aggregate the values of each resource in the mining location still taking into account the calendars for the diggers.  I've added a simple output report below to demonstrate.

As I said before, someone else might be able to chime in with some more useful information but I hope this helps as a start.  I'll see if I can get someone from R&D to check this out as well in the new year.

Thanks Chris,
Cheers,
Ash

comment imagecomment image
CM
CM 2026-01-05

HI Ash,
Thanks for the reply yes, I am after trying to obtain resource figures for a loader moving stockpiles. It appears these functions only work for resources used for mining and nothing else which is a shame.  As I am using movement from mine stockpiles using a loader for an ore cartage company, we use onsite so include in reports and would be nice to obtain resource or period workdays to confirm daily production targets.
Regards
Chris

CM
CM 2026-01-06

Hi @AC 
Can the question be asked why it does not work since both definitions refer to a resource and the resource calendar. In the schedule I define the resource, and I have a calendar for it.
Regards
Chris