As for understanding the question, I would start by asking the questioner what they mean by "the nearest month". Finding the third Friday of a month is doable, but you first need to know what month you're working with.