If the place of imprisonment of the person be beyond the distance of twenty miles from the place where such court is held and not above one hundred miles he shall be brought before the court or the person before whom the writ is returnable within the space of ten days and if beyond the distance of one hundred miles then within the space of twenty days after the delivery of such writ and not longer.
S.C. Code § 17-17-80