How many hours a day?

Ok look, i study for excessive hours n my grades arent even close to an A*. So can anyone tell me like how i should study, my study time starts from 5pm and ends at anytime i wanna sleep usually 1 am or evn 2. So how many hours should i study a day to get good grades.. how many past papers should i do, like a minimum amount...