Dim isItTime As Boolean = False
Dim aDateFromReminder As DateTime = CDate("14.9.2011 7:00") ' This date comes from the reminder. I have to use Finnish datetime format
Dim timeInterval As Integer = 48 ' How much earlier you need to be reminded, the unit is hours
' Compare the reminder's date/time to current date time
If (aDateFromReminder.Subtract(Now).Hours <= timeInterval) Then
isItTime = True
End If
' With the unit of hours, the precision is 2d + 1h in the code above
' If the time is now 12.9.2011 6:21, you would get a reminder (2d + 39 minutes)
' If you want more accuracy, change
' aDateFromReminder.Subtract(Now).Hours -> aDateFromReminder.Subtract(Now).Minutes
' and
' Dim timeInterval As Integer = 48 -> Dim timeInterval As Integer = 48 * 60 ' 2880 minutes

Hi!
I have two tables, I will call them first-half and second-half (of the year)

Table: first
id jan feb mar apr
-----------------------
2 80 90 70 60
3 50 40 60 30
Table: second
id jan feb mar apr
-----------------------
2 50 70 60 90
3 80 60 50 ...

from turtle import *
import random
def allTriMedian (w=300):
speed (0)
vertices = []
point = turtle.Point(x,y)
for i in range (3):
x = random.randint(0,300)
y = random.randint(0,300)
vertices.append(trutle.Point(x,y))
point = turtle.Point(x,y)
triangle = turtle.Polygon(vertices)
a = triangle.side()
b = triangle.side()
c = triangle.side()
m1 = tirangle.median
m2 = triangle.median ...