When taking melatonin to help you sleep you should take no more than 5 MG of Melatonin which is considered to be a safe dose of melatonin then you could gradually increase your dosage depending on if it helps you sleep or not.
Although it's said that it's not safe to take more than 10 MG of Melatonin per night unless you speak with your doctor first.