A renewal theory approach to two-state switching problems with infinite values. (March 2020)