     "After #{zmanim.setHaKochabim3Stars().format('h:mm')}"
   else
     zmanim.hadlakatNerot().format('h:mm')
+
+seudat_shelishit_in_shul_description = (hebrewDate) ->
+  seudat_shelishit_verb = if hebrewDate.isErebShabuot() || hebrewDate.isEreb9Ab() then "<strong>Finish</strong>" else "Begin"
+  "<span class='font13'>#{seudat_shelishit_verb} סְעוּדַת שְׁלִישִׁית before</span>"
 
 rabbenuTamTime = (zmanim) -> moment(zmanim.sunset()).add(72, 'minutes').seconds(60).format('h:mm')
 

  dow = "#{dow} night" if rows[0]?.tomorrow
  dow

afternoonShiurimTimes = (hebrewDate) ->
  if hebrewDate.isErebShabuot()
    [90, 60, -65]
  else
    [120, 90, 30]

hadlakatNerotTime = (hebrewDate, zmanim) ->
  if hebrewDate.yomYobThatWePrayAtPlag() && !hebrewDate.isErebShabbat() && !hebrewDate.isShabbat()

      seudat_shelishit_description = "Begin סְעוּדַת שְׁלִישִׁית <strong>at home</strong> before"
      rows.push(description: "<span class='font13'>#{seudat_shelishit_description}</span>", time: zmanim.sunset().format('h:mm'))
    if (hebrewDate.isShabbat() || hebrewDate.isYomTob()) && !hebrewDate.is1stDayOfPesach()  && !hebrewDate.is2ndDayOfPesach() && !hebrewDate.is1stDayOfShabuot() && !hebrewDate.isYomKippur()
      rows.push(description: "Afternoon Shiurim", time: afternoonShiurimTimes(hebrewDate, mincha))
    if hebrewDate.isRoshHashana() && hebrewDate.is1stDayOfYomTob()
      rows.push(description: "תַּשְׁלְיךְ", time: "After מִנְחָה")
    if hebrewDate.is2ndDayOfYomTob() && !hebrewDate.isErebShabbat() && !hebrewDate.isShabbat()
      rows.push(description: "יוֹם טוֹב ends", time: zmanim.setHaKochabim3Stars().format('h:mm'))
    if hebrewDate.isShabbat() && !hebrewDate.isYomKippur()
      unless hebrewDate.is1stDayOfYomTob()
        rows.push(description: seudat_shelishit_in_shul_description(hebrewDate), time: zmanim.sunset().format('h:mm'))
      rows.push(description: "שַׁבָּת ends", time: zmanim.setHaKochabim3Stars().format('h:mm'))
      rows.push(description: "רַבֵּנוּ תָּם", time: rabbenuTamTime(zmanim))
      if zmanim.sunset().isBefore(moment(gregorianDate).hour(18).minute(35)) && !hebrewDate.isErebPurim()
