How many km should a beginner runner run?

Hi! I am planning to run for a marathon this yr mga ber months pa nmn. Planning to train myself sa tamang pace and tamang diet. Any tips pls and best time to run if evef wfh like me. Thank you!