Is there a way to determine a government bill's or bond's maturity date by looking at its CUSIP?
For example, the CUSIP for US T-Bills with a maturity of 12/1/11 is 9127953V1. As you probably know, the first six characters of a CUSIP represent the item in question (e.g. US TBills); the last digit is an error correction code; the seventh and eighth characters are specific to the maturity. So in this case, "3V" maps to 12/1/11.
Do you know the algorithm that's used to map the two digit code to a maturity? I can obtain the maturity by hand using the internet or Bloomberg but would prefer to have an algorithm if possible. Any ideas?