# How to calculate 60 days from tekufat tishri for any given year?

I'm trying to pin down an algorithm for calculating when to start saying ותן טל ומטר in diaspora. (In Israel it begins 7 Cheshvan.) I've gotten that we need to know how many centuries passed since 1500 on the Gregorian calendar, but I'm confused how to factor in the fact that three years every 400 years was treated differently.

How would you calculate Tekufat Tishri for any given year?

-
Near-duplicate of judaism.stackexchange.com/questions/11985. Really, this question is lacking in motivation: you don't indicate why you want to know about t'kufas Tishre, why it's important to the calculation of when to start saying "v'sen tal umatar". – msh210 Mar 13 '12 at 15:36
@msh210 I'm getting the feeling Moshe wants a formula to use in one of his famous apps (as evidenced by his user profile). – Double AA Mar 14 '12 at 2:32
@DoubleAA - Haha, and right you are. I studied this in a few places, but I was feeling a bit lazy while coding and decided it makes a good question for this site regardless. – Moshe Mar 14 '12 at 2:49
@Moshe Which is why I tried to write out a formula in my answer that would be useful in code, even if no one else will really benefit by reading it. – Double AA Mar 14 '12 at 3:05
@DoubleAA I'm going to have to go over it again, but thanks for the starting point. Too tired to look at the moment. Also, Ultimate Omer 2 just got an update approved. Please email me for a promo code as thanks for your help. moshberm {at} gmail, thanks. – Moshe Mar 14 '12 at 3:19

This past tekufat tishrei was October 7, 2011 at 9 PM. To calculate the next tekufat tishrei: add six hours to the previous year's time, while subtracting 24 hours for every civil leap year passed in between tekufot tishrei.

Source

To generalize, tekufat tishrei for future years is on October 7 at time: ((6 hours*(year mod 4)) - 3 hours) + (24 hours * (ceiling (0.75*(floor ((year - 2000) / 100)))))

-
I'm not sure now if my math works out. I think I'm on the right track, but maybe that aspect of the question better belongs on mathematics.SE – Double AA Mar 13 '12 at 17:47
Ok I think that should do it. – Double AA Mar 13 '12 at 17:50

Since your need seems to be to figure out "when to start saying ותן טל ומטר in diaspora", I'll just focus on that (and ignore the mention of the tekufah in the title):