org-get-wdays

org-get-wdays is a compiled Lisp function in `org.el'.

(org-get-wdays TS &optional DELAY ZERO-DELAY)

Get the deadline lead time appropriate for timestring TS.
When DELAY is non-nil, get the delay time for scheduled items
instead of the deadline lead time. When ZERO-DELAY is non-nil
and `org-scheduled-delay-days' is 0, enforce 0 as the delay,
don't try to find the delay cookie in the scheduled timestamp.