How to apply coconut oil in hair

I have thin and very curly hair and it’s often dry how long do I leave coconut oil in ??