Projects Directory : Creating GoalSeek Function in SQL Server - Creating hash function according to certain criteria