In determining the duration and expiration dates of the time periods provided in §§ 23-24A-3 and 23-24A-14, the running of said time periods shall be tolled whenever and for as long as the prisoner is unable to stand trial, as determined by the court having jurisdiction of the matter.
SDCL 23-24A-15