Yes, you can claim loss of earnings for any time of work that is related to the attack by the dog but as long as the duration off work is reasonable and you must mitigate your loss.