Questions about good places to live and commute into Edinburgh seem to come up a lot on here so I thought this article might be useful - it gives an idea of both commute times and costs:
https://espc.com/news/post/where-to-live-near-edinburgh?utmsource=facebook&utmmedium=social-paid&utmcampaign=autumn-201908&utmterm=clicks-buyers-single-image-blog&utm_content=commuter-blog-20190902
Hopefully useful to narrow search areas for someone!