Rabbi Avrohom Baruch Zachariash teaches the halachas of WHEN to PREPARE for SHABBOS with the Mishnah Berurah (O.C. 262).