Jonne q calculator works properly now