Provide a detailed explanation of how credit scores are calculated, including factors like payment history, credit utilization, and length of credit history. Offer tips on improving and maintaining a good credit score. Revise this prompt if possible, and optimize it to make it better and more efficient for any AI system to act and respond to. If possible run your optimized version.