how to find mod value site:stackoverflow.com - Search