Bazi and a person’s birth date, that is, the year, month, day, and hour of a person’s birth add up to the birth date. Calculating the compatibility of horoscopes is an algorithm based on the method of predicting fortune using horoscopes. Why do people pay attention to birth and horoscope matching? One life can influence another life. Once a man and a woman get married, the other person becomes their closest person, and the other person's birth date and horoscope combination must have the greatest impact on them. A marriage that is beneficial to both parties and their families is a favorable marriage, otherwise it is an unfavorable marriage. A happy marriage is one where the love remains as good as before, good luck continues, and everything goes smoothly. Painful marriages often lead to quarrels, financial losses, illness, even divorce, and injuries. Therefore, since ancient times, people have attached great importance to the issue of marriage between men and women.