Automating intercompany billing