It's gonna be a question of time rather than ability. ~40mi. ~= 60km. It takes little effort to cruise at ~20km/h on a reasonable bike (road tires, not a heavy cruiser or old 3 speed), so assume you will be spending 3 hours in commute each day, 1.5h out, 1.5h back.