Automatic updating in Employee form fields

Automatic updating in Employee form fields

Need to update the Date of Confirmation and Employee Status field automatically based on Date of Joining field.
HOw to automate this process.