Fixed error in determining selected radio button selected.

Fixed the issue regarding determining which radio box was selected. Also renamed determine_week to determine_day.